From: Dmitry Torokhov Date: Mon, 9 Mar 2015 18:04:09 +0000 (-0700) Subject: gpio: gpio-tb10x: remove incorrect __exit markup X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b8a51a2e8a9f8e24f8f155772168a7ca35ce7f75;p=linux-beck.git gpio: gpio-tb10x: remove incorrect __exit markup Even if bus is not hot-pluggable, the devices can be unbound from the driver via sysfs, so we should not be using __exit annotations on remove() methods. The only exception is drivers registered with platform_driver_probe() which specifically disables sysfs bind/unbind attributes. Signed-off-by: Dmitry Torokhov Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-tb10x.c b/drivers/gpio/gpio-tb10x.c index 62ab9f4b2cd3..46b89614aa91 100644 --- a/drivers/gpio/gpio-tb10x.c +++ b/drivers/gpio/gpio-tb10x.c @@ -283,7 +283,7 @@ fail_ioremap: return ret; } -static int __exit tb10x_gpio_remove(struct platform_device *pdev) +static int tb10x_gpio_remove(struct platform_device *pdev) { struct tb10x_gpio *tb10x_gpio = platform_get_drvdata(pdev);