drivers/rtc/rtc-ds1216.c: use module_platform_driver_probe()
[deliverable/linux.git] / drivers / rtc / rtc-ds1216.c
index 1831c8461b900157038ed8677d1ce66adda02a1c..9c04fd2bc209b033ee209b3f2ab3e5f689ccbfdf 100644 (file)
@@ -174,21 +174,10 @@ static struct platform_driver ds1216_rtc_platform_driver = {
        },
 };
 
-static int __init ds1216_rtc_init(void)
-{
-       return platform_driver_probe(&ds1216_rtc_platform_driver, ds1216_rtc_probe);
-}
-
-static void __exit ds1216_rtc_exit(void)
-{
-       platform_driver_unregister(&ds1216_rtc_platform_driver);
-}
+module_platform_driver_probe(ds1216_rtc_platform_driver, ds1216_rtc_probe);
 
 MODULE_AUTHOR("Thomas Bogendoerfer <tsbogend@alpha.franken.de>");
 MODULE_DESCRIPTION("DS1216 RTC driver");
 MODULE_LICENSE("GPL");
 MODULE_VERSION(DRV_VERSION);
 MODULE_ALIAS("platform:rtc-ds1216");
-
-module_init(ds1216_rtc_init);
-module_exit(ds1216_rtc_exit);
This page took 0.032764 seconds and 5 git commands to generate.