diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2015-03-09 14:04:09 -0400 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2015-03-27 06:25:23 -0400 |
commit | b8a51a2e8a9f8e24f8f155772168a7ca35ce7f75 (patch) | |
tree | 0b3c022b7ac16edd06785fedc77638cc81b4357b /drivers/gpio/gpio-tb10x.c | |
parent | 17d33a450a776c0ce6c3659e1154396dc1eecba8 (diff) |
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 <dmitry.torokhov@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-tb10x.c')
-rw-r--r-- | drivers/gpio/gpio-tb10x.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: | |||
283 | return ret; | 283 | return ret; |
284 | } | 284 | } |
285 | 285 | ||
286 | static int __exit tb10x_gpio_remove(struct platform_device *pdev) | 286 | static int tb10x_gpio_remove(struct platform_device *pdev) |
287 | { | 287 | { |
288 | struct tb10x_gpio *tb10x_gpio = platform_get_drvdata(pdev); | 288 | struct tb10x_gpio *tb10x_gpio = platform_get_drvdata(pdev); |
289 | 289 | ||