Searched refs:gpio_pdev (Results 1 – 2 of 2) sorted by relevance
69 static struct platform_device *gpio_pdev; variable417 gpio_pdev = platform_device_register_simple(DRIVER_NAME, PLATFORM_DEVID_NONE, &res, 1); in p50_module_init()418 if (IS_ERR(gpio_pdev)) { in p50_module_init()419 pr_err("failed registering %s: %ld\n", DRIVER_NAME, PTR_ERR(gpio_pdev)); in p50_module_init()421 return PTR_ERR(gpio_pdev); in p50_module_init()429 platform_device_unregister(gpio_pdev); in p50_module_exit()
1022 struct platform_device *gpio_pdev; in nmk_gpio_populate_chip() local1029 gpio_pdev = of_find_device_by_node(np); in nmk_gpio_populate_chip()1030 if (!gpio_pdev) { in nmk_gpio_populate_chip()1036 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()1043 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()1049 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()1057 chip->label = dev_name(&gpio_pdev->dev); in nmk_gpio_populate_chip()1058 chip->parent = &gpio_pdev->dev; in nmk_gpio_populate_chip()1060 res = platform_get_resource(gpio_pdev, IORESOURCE_MEM, 0); in nmk_gpio_populate_chip()1063 platform_device_put(gpio_pdev); in nmk_gpio_populate_chip()[all …]