Home
last modified time | relevance | path

Searched refs:gpio_pdev (Results 1 – 3 of 3) sorted by relevance

/linux/sound/pci/hda/
H A Dcirrus_scodec_test.c22 struct platform_device *gpio_pdev; member
119 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 …]
/linux/drivers/gpio/
H A Dgpio-nomadik.c503 struct platform_device *gpio_pdev; in nmk_gpio_populate_chip() local
519 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 …]
/linux/drivers/platform/x86/
H A Dbarco-p50-gpio.c69 static struct platform_device *gpio_pdev; variable
415 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()