aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-tegra.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-04-29 19:18:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2013-04-29 21:28:21 -0400
commit51b38c62aa89c8747c350dac2515b8899ff8f4d7 (patch)
tree28555cbc419f7bb33360a7166907cf8a6c44ea4b /drivers/rtc/rtc-tegra.c
parent5cc2b9c67ac0c90915c99fa1a53778049f0e747d (diff)
rtc: rtc-tegra: 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-tegra.c')
-rw-r--r--drivers/rtc/rtc-tegra.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/rtc/rtc-tegra.c b/drivers/rtc/rtc-tegra.c
index 7c033756d6b5..0020bab3f154 100644
--- a/drivers/rtc/rtc-tegra.c
+++ b/drivers/rtc/rtc-tegra.c
@@ -309,7 +309,7 @@ static const struct of_device_id tegra_rtc_dt_match[] = {
309}; 309};
310MODULE_DEVICE_TABLE(of, tegra_rtc_dt_match); 310MODULE_DEVICE_TABLE(of, tegra_rtc_dt_match);
311 311
312static int tegra_rtc_probe(struct platform_device *pdev) 312static int __init tegra_rtc_probe(struct platform_device *pdev)
313{ 313{
314 struct tegra_rtc_info *info; 314 struct tegra_rtc_info *info;
315 struct resource *res; 315 struct resource *res;
@@ -379,7 +379,7 @@ err_dev_unreg:
379 return ret; 379 return ret;
380} 380}
381 381
382static int tegra_rtc_remove(struct platform_device *pdev) 382static int __exit tegra_rtc_remove(struct platform_device *pdev)
383{ 383{
384 struct tegra_rtc_info *info = platform_get_drvdata(pdev); 384 struct tegra_rtc_info *info = platform_get_drvdata(pdev);
385 385
@@ -439,7 +439,7 @@ static void tegra_rtc_shutdown(struct platform_device *pdev)
439 439
440MODULE_ALIAS("platform:tegra_rtc"); 440MODULE_ALIAS("platform:tegra_rtc");
441static struct platform_driver tegra_rtc_driver = { 441static struct platform_driver tegra_rtc_driver = {
442 .remove = tegra_rtc_remove, 442 .remove = __exit_p(tegra_rtc_remove),
443 .shutdown = tegra_rtc_shutdown, 443 .shutdown = tegra_rtc_shutdown,
444 .driver = { 444 .driver = {
445 .name = "tegra_rtc", 445 .name = "tegra_rtc",