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

video: fbdev: pmag-ba-fb: remove incorrect __exit markups

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>
Cc: "Maciej W. Rozycki" <macro@linux-mips.org>
Cc: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>

authored by

Dmitry Torokhov and committed by
Bartlomiej Zolnierkiewicz
982711cc 0348aaa3

+2 -2
+2 -2
drivers/video/fbdev/pmag-ba-fb.c
··· 235 235 return err; 236 236 } 237 237 238 - static int __exit pmagbafb_remove(struct device *dev) 238 + static int pmagbafb_remove(struct device *dev) 239 239 { 240 240 struct tc_dev *tdev = to_tc_dev(dev); 241 241 struct fb_info *info = dev_get_drvdata(dev); ··· 270 270 .name = "pmagbafb", 271 271 .bus = &tc_bus_type, 272 272 .probe = pmagbafb_probe, 273 - .remove = __exit_p(pmagbafb_remove), 273 + .remove = pmagbafb_remove, 274 274 }, 275 275 }; 276 276