mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 22:58:29 +00:00
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>
This commit is contained in:
parent
17d33a450a
commit
b8a51a2e8a
1 changed files with 1 additions and 1 deletions
|
@ -283,7 +283,7 @@ fail_ioremap:
|
||||||
return ret;
|
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);
|
struct tb10x_gpio *tb10x_gpio = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue