summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-01-21 11:16:03 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:50:49 -0700
commit7b782769dcad5c6c02b1cd8ffdb341bbf78c77ed (patch)
tree95af0e550b10b912ae68160d505ffb932eb26d39 /drivers/rtc
parentf58075a8040182cb107fd08528d8e2a142e5dee5 (diff)
rtc: max77660: use module_platform_driver
Use module_platform_driver in place of module_init() and module_exit() for reducing code lines. Change-Id: I8ccfb403cd6e1dd3a2134577ee1bb9a5568063c5 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/192833 Reviewed-by: Automatic_Commit_Validation_User
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-max77660.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-max77660.c b/drivers/rtc/rtc-max77660.c
index d15d11caa35e..a0150ccbd197 100644
--- a/drivers/rtc/rtc-max77660.c
+++ b/drivers/rtc/rtc-max77660.c
@@ -613,17 +613,7 @@ static struct platform_driver max77660_rtc_driver = {
.shutdown = max77660_rtc_shutdown,
};
-static int __init max77660_rtc_init(void)
-{
- return platform_driver_register(&max77660_rtc_driver);
-}
-module_init(max77660_rtc_init);
-
-static void __exit max77660_rtc_exit(void)
-{
- platform_driver_unregister(&max77660_rtc_driver);
-}
-module_exit(max77660_rtc_exit);
+module_platform_driver(max77660_rtc_driver);
MODULE_DESCRIPTION("max77660 RTC driver");
MODULE_LICENSE("GPL v2");