Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: db8500-prcmu - 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: Mark Brown <broonie@opensource.wolfsonmicro.com>

authored by

Dmitry Torokhov and committed by
Mark Brown
4ceb73ae 19f949f5

+2 -2
+2 -2
drivers/regulator/db8500-prcmu.c
··· 528 528 return 0; 529 529 } 530 530 531 - static int __exit db8500_regulator_remove(struct platform_device *pdev) 531 + static int db8500_regulator_remove(struct platform_device *pdev) 532 532 { 533 533 int i; 534 534 ··· 553 553 .owner = THIS_MODULE, 554 554 }, 555 555 .probe = db8500_regulator_probe, 556 - .remove = __exit_p(db8500_regulator_remove), 556 + .remove = db8500_regulator_remove, 557 557 }; 558 558 559 559 static int __init db8500_regulator_init(void)