]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drivers/video/backlight/hp680_bl.c: add missing __devexit macros for remove
authorJingoo Han <jg1.han@samsung.com>
Thu, 29 Nov 2012 03:18:29 +0000 (14:18 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 5 Dec 2012 05:23:31 +0000 (16:23 +1100)
The __devexit macros is added to remove function.  The macro moves the
remove function to devexit section.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/video/backlight/hp680_bl.c

index 5cefd73526f861a70d46044a379e0f42982d833b..7f703904c887cd6ccb3bd924438734683872e1b2 100644 (file)
@@ -124,7 +124,7 @@ static int hp680bl_probe(struct platform_device *pdev)
        return 0;
 }
 
-static int hp680bl_remove(struct platform_device *pdev)
+static int __devexit hp680bl_remove(struct platform_device *pdev)
 {
        struct backlight_device *bd = platform_get_drvdata(pdev);
 
@@ -139,7 +139,7 @@ static int hp680bl_remove(struct platform_device *pdev)
 
 static struct platform_driver hp680bl_driver = {
        .probe          = hp680bl_probe,
-       .remove         = hp680bl_remove,
+       .remove         = __devexit_p(hp680bl_remove),
        .suspend        = hp680bl_suspend,
        .resume         = hp680bl_resume,
        .driver         = {