]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
rtc: rtc-davinci: add __exit annotation
authorJingoo Han <jg1.han@samsung.com>
Tue, 26 Mar 2013 23:25:11 +0000 (10:25 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 4 Apr 2013 06:12:32 +0000 (17:12 +1100)
When platform_driver_probe() is used, bind/unbind via sysfs is disabled.
Thus, __init/__exit annotations can be added to probe()/remove().

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/rtc/rtc-davinci.c

index 56b73089bb29bfa3b8296d42f79e6087f00bf4cb..db877e02f2a297c40d491286ac0fc9dbeeff2f98 100644 (file)
@@ -564,7 +564,7 @@ fail1:
        return ret;
 }
 
-static int davinci_rtc_remove(struct platform_device *pdev)
+static int __exit davinci_rtc_remove(struct platform_device *pdev)
 {
        struct davinci_rtc *davinci_rtc = platform_get_drvdata(pdev);
 
@@ -581,7 +581,7 @@ static int davinci_rtc_remove(struct platform_device *pdev)
 
 static struct platform_driver davinci_rtc_driver = {
        .probe          = davinci_rtc_probe,
-       .remove         = davinci_rtc_remove,
+       .remove         = __exit_p(davinci_rtc_remove),
        .driver         = {
                .name = "rtc_davinci",
                .owner = THIS_MODULE,