Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8a51a2e authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Linus Walleij
Browse files

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: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 17d33a45
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -283,7 +283,7 @@ static int tb10x_gpio_probe(struct platform_device *pdev)
	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);