]> 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>
Sat, 3 Nov 2012 00:42:47 +0000 (11:42 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 8 Nov 2012 04:08:49 +0000 (15:08 +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 191fbedf02ea029285cce80384269b9217004dc0..31d3a1ffb81f707d8d999ad39801e9fde898c47f 100644 (file)
@@ -124,7 +124,7 @@ static int __devinit 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         = {