Searched refs:gpio_pdev (Results 1 – 3 of 3) sorted by relevance
22 struct platform_device *gpio_pdev; member119 priv->gpio_pdev = platform_device_alloc(cirrus_scodec_test_gpio_driver.driver.name, -1); in cirrus_scodec_test_create_gpio()120 if (!priv->gpio_pdev) in cirrus_scodec_test_create_gpio()123 ret = device_add_software_node(&priv->gpio_pdev->dev, &cirrus_scodec_test_gpio_swnode); in cirrus_scodec_test_create_gpio()125 platform_device_put(priv->gpio_pdev); in cirrus_scodec_test_create_gpio()130 ret = platform_device_add(priv->gpio_pdev); in cirrus_scodec_test_create_gpio()132 platform_device_put(priv->gpio_pdev); in cirrus_scodec_test_create_gpio()137 priv->gpio_priv = dev_get_drvdata(&priv->gpio_pdev->dev); in cirrus_scodec_test_create_gpio()139 platform_device_put(priv->gpio_pdev); in cirrus_scodec_test_create_gpio()281 if (priv->gpio_pdev) { in cirrus_scodec_test_case_exit()[all …]
503 struct platform_device *gpio_pdev; in nmk_gpio_populate_chip() local519 gpio_pdev = to_platform_device(gpio_dev); in nmk_gpio_populate_chip()523 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()530 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()536 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()543 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()562 res = platform_get_resource(gpio_pdev, IORESOURCE_MEM, 0); in nmk_gpio_populate_chip()565 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()573 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()584 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()[all …]
69 static struct platform_device *gpio_pdev; variable415 gpio_pdev = platform_device_register_simple(DRIVER_NAME, PLATFORM_DEVID_NONE, &res, 1); in p50_module_init()416 if (IS_ERR(gpio_pdev)) { in p50_module_init()417 pr_err("failed registering %s: %ld\n", DRIVER_NAME, PTR_ERR(gpio_pdev)); in p50_module_init()419 return PTR_ERR(gpio_pdev); in p50_module_init()427 platform_device_unregister(gpio_pdev); in p50_module_exit()