diff options
Diffstat (limited to 'arch/arm/plat-nomadik')
-rw-r--r-- | arch/arm/plat-nomadik/gpio.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/arm/plat-nomadik/gpio.c b/arch/arm/plat-nomadik/gpio.c index 1e0e9130e51e..977c8f9a07a2 100644 --- a/arch/arm/plat-nomadik/gpio.c +++ b/arch/arm/plat-nomadik/gpio.c | |||
@@ -619,30 +619,12 @@ out: | |||
619 | return ret; | 619 | return ret; |
620 | } | 620 | } |
621 | 621 | ||
622 | static int __exit nmk_gpio_remove(struct platform_device *dev) | ||
623 | { | ||
624 | struct nmk_gpio_chip *nmk_chip; | ||
625 | struct resource *res; | ||
626 | |||
627 | res = platform_get_resource(dev, IORESOURCE_MEM, 0); | ||
628 | |||
629 | nmk_chip = platform_get_drvdata(dev); | ||
630 | gpiochip_remove(&nmk_chip->chip); | ||
631 | clk_disable(nmk_chip->clk); | ||
632 | clk_put(nmk_chip->clk); | ||
633 | kfree(nmk_chip); | ||
634 | release_mem_region(res->start, resource_size(res)); | ||
635 | return 0; | ||
636 | } | ||
637 | |||
638 | |||
639 | static struct platform_driver nmk_gpio_driver = { | 622 | static struct platform_driver nmk_gpio_driver = { |
640 | .driver = { | 623 | .driver = { |
641 | .owner = THIS_MODULE, | 624 | .owner = THIS_MODULE, |
642 | .name = "gpio", | 625 | .name = "gpio", |
643 | }, | 626 | }, |
644 | .probe = nmk_gpio_probe, | 627 | .probe = nmk_gpio_probe, |
645 | .remove = __exit_p(nmk_gpio_remove), | ||
646 | .suspend = NULL, /* to be done */ | 628 | .suspend = NULL, /* to be done */ |
647 | .resume = NULL, | 629 | .resume = NULL, |
648 | }; | 630 | }; |