Commit 09fb7ad1 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds

rtc: rtc-mc13xxx: use module_platform_driver_probe()

Use module_platform_driver_probe() macro which makes the code smaller and
simpler.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 61534342
...@@ -420,17 +420,7 @@ static struct platform_driver mc13xxx_rtc_driver = { ...@@ -420,17 +420,7 @@ static struct platform_driver mc13xxx_rtc_driver = {
}, },
}; };
static int __init mc13xxx_rtc_init(void) module_platform_driver_probe(mc13xxx_rtc_driver, &mc13xxx_rtc_probe);
{
return platform_driver_probe(&mc13xxx_rtc_driver, &mc13xxx_rtc_probe);
}
module_init(mc13xxx_rtc_init);
static void __exit mc13xxx_rtc_exit(void)
{
platform_driver_unregister(&mc13xxx_rtc_driver);
}
module_exit(mc13xxx_rtc_exit);
MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>"); MODULE_AUTHOR("Sascha Hauer <s.hauer@pengutronix.de>");
MODULE_DESCRIPTION("RTC driver for Freescale MC13XXX PMIC"); MODULE_DESCRIPTION("RTC driver for Freescale MC13XXX PMIC");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment