diff options
Diffstat (limited to 'drivers/rtc/rtc-ds2404.c')
-rw-r--r-- | drivers/rtc/rtc-ds2404.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/rtc/rtc-ds2404.c b/drivers/rtc/rtc-ds2404.c index 5ea9df7c8c31..4539e37c2238 100644 --- a/drivers/rtc/rtc-ds2404.c +++ b/drivers/rtc/rtc-ds2404.c | |||
@@ -283,19 +283,7 @@ static struct platform_driver rtc_device_driver = { | |||
283 | .owner = THIS_MODULE, | 283 | .owner = THIS_MODULE, |
284 | }, | 284 | }, |
285 | }; | 285 | }; |
286 | 286 | module_platform_driver(rtc_device_driver); | |
287 | static __init int ds2404_init(void) | ||
288 | { | ||
289 | return platform_driver_register(&rtc_device_driver); | ||
290 | } | ||
291 | |||
292 | static __exit void ds2404_exit(void) | ||
293 | { | ||
294 | platform_driver_unregister(&rtc_device_driver); | ||
295 | } | ||
296 | |||
297 | module_init(ds2404_init); | ||
298 | module_exit(ds2404_exit); | ||
299 | 287 | ||
300 | MODULE_DESCRIPTION("DS2404 RTC"); | 288 | MODULE_DESCRIPTION("DS2404 RTC"); |
301 | MODULE_AUTHOR("Sven Schnelle"); | 289 | MODULE_AUTHOR("Sven Schnelle"); |