[PATCH 3/3] rtc: pxa: convert to use module_platform_driver()

Jett.Zhou jtzhou at marvell.com
Thu Aug 16 07:59:51 EDT 2012


Signed-off-by: Jett.Zhou <jtzhou at marvell.com>
---
 drivers/rtc/rtc-pxa.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/drivers/rtc/rtc-pxa.c b/drivers/rtc/rtc-pxa.c
index 3a060d2..b2a1c7f 100644
--- a/drivers/rtc/rtc-pxa.c
+++ b/drivers/rtc/rtc-pxa.c
@@ -432,18 +432,7 @@ static struct platform_driver pxa_rtc_driver = {
 	},
 };
 
-static int __init pxa_rtc_init(void)
-{
-	return platform_driver_register(&pxa_rtc_driver);
-}
-
-static void __exit pxa_rtc_exit(void)
-{
-	platform_driver_unregister(&pxa_rtc_driver);
-}
-
-module_init(pxa_rtc_init);
-module_exit(pxa_rtc_exit);
+module_platform_driver(pxa_rtc_driver);
 
 MODULE_AUTHOR("Robert Jarzmik <robert.jarzmik at free.fr>");
 MODULE_DESCRIPTION("PXA27x/PXA3xx Realtime Clock Driver (RTC)");
-- 
1.7.0.4




More information about the linux-arm-kernel mailing list