]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commitdiff
OMAPFB: remove __exit annotation
authorFelipe Balbi <balbi@ti.com>
Tue, 14 Oct 2014 18:28:53 +0000 (13:28 -0500)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 22 Oct 2014 08:07:07 +0000 (11:07 +0300)
If we leave __exit annotation, driver can't be unbound
through sysfs.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/omap2/omapfb/omapfb-main.c

index bdb88dec074431659ba87ab951880fe490e9ea3e..10207daf41fe781ffe908ab7ee4fa0d44a47b2c4 100644 (file)
@@ -2619,7 +2619,7 @@ err0:
        return r;
 }
 
-static int __exit omapfb_remove(struct platform_device *pdev)
+static int omapfb_remove(struct platform_device *pdev)
 {
        struct omapfb2_device *fbdev = platform_get_drvdata(pdev);
 
@@ -2636,7 +2636,7 @@ static int __exit omapfb_remove(struct platform_device *pdev)
 
 static struct platform_driver omapfb_driver = {
        .probe          = omapfb_probe,
-       .remove         = __exit_p(omapfb_remove),
+       .remove         = omapfb_remove,
        .driver         = {
                .name   = "omapfb",
                .owner  = THIS_MODULE,