aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-imxdi.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-29 19:18:24 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 21:28:21 -0400
commit5073cba64fd0acb2555aad8f33ff4c64f68c15db (patch)
tree729fea3fb7a4f3451da7844b6634292d88dbfb79 /drivers/rtc/rtc-imxdi.c
parente3c70624e664f6390c699201a93b8528b818f24f (diff)
rtc: rtc-imxdi: add __init/__exit annotation
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> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rtc/rtc-imxdi.c')
-rw-r--r--drivers/rtc/rtc-imxdi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-imxdi.c b/drivers/rtc/rtc-imxdi.c
index 82aad695979e..73cf81c34a22 100644
--- a/drivers/rtc/rtc-imxdi.c
+++ b/drivers/rtc/rtc-imxdi.c
@@ -369,7 +369,7 @@ static void dryice_work(struct work_struct *work)
369/* 369/*
370 * probe for dryice rtc device 370 * probe for dryice rtc device
371 */ 371 */
372static int dryice_rtc_probe(struct platform_device *pdev) 372static int __init dryice_rtc_probe(struct platform_device *pdev)
373{ 373{
374 struct resource *res; 374 struct resource *res;
375 struct imxdi_dev *imxdi; 375 struct imxdi_dev *imxdi;
@@ -479,7 +479,7 @@ err:
479 return rc; 479 return rc;
480} 480}
481 481
482static int dryice_rtc_remove(struct platform_device *pdev) 482static int __exit dryice_rtc_remove(struct platform_device *pdev)
483{ 483{
484 struct imxdi_dev *imxdi = platform_get_drvdata(pdev); 484 struct imxdi_dev *imxdi = platform_get_drvdata(pdev);
485 485
@@ -510,7 +510,7 @@ static struct platform_driver dryice_rtc_driver = {
510 .owner = THIS_MODULE, 510 .owner = THIS_MODULE,
511 .of_match_table = of_match_ptr(dryice_dt_ids), 511 .of_match_table = of_match_ptr(dryice_dt_ids),
512 }, 512 },
513 .remove = dryice_rtc_remove, 513 .remove = __exit_p(dryice_rtc_remove),
514}; 514};
515 515
516static int __init dryice_rtc_init(void) 516static int __init dryice_rtc_init(void)