diff options
Diffstat (limited to 'drivers/rtc/rtc-mpc5121.c')
| -rw-r--r-- | drivers/rtc/rtc-mpc5121.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers/rtc/rtc-mpc5121.c index da60915818b6..9d3caccfc250 100644 --- a/drivers/rtc/rtc-mpc5121.c +++ b/drivers/rtc/rtc-mpc5121.c | |||
| @@ -418,17 +418,7 @@ static struct platform_driver mpc5121_rtc_driver = { | |||
| 418 | .remove = __devexit_p(mpc5121_rtc_remove), | 418 | .remove = __devexit_p(mpc5121_rtc_remove), |
| 419 | }; | 419 | }; |
| 420 | 420 | ||
| 421 | static int __init mpc5121_rtc_init(void) | 421 | module_platform_driver(mpc5121_rtc_driver); |
| 422 | { | ||
| 423 | return platform_driver_register(&mpc5121_rtc_driver); | ||
| 424 | } | ||
| 425 | module_init(mpc5121_rtc_init); | ||
| 426 | |||
| 427 | static void __exit mpc5121_rtc_exit(void) | ||
| 428 | { | ||
| 429 | platform_driver_unregister(&mpc5121_rtc_driver); | ||
| 430 | } | ||
| 431 | module_exit(mpc5121_rtc_exit); | ||
| 432 | 422 | ||
| 433 | MODULE_LICENSE("GPL"); | 423 | MODULE_LICENSE("GPL"); |
| 434 | MODULE_AUTHOR("John Rigby <jcrigby@gmail.com>"); | 424 | MODULE_AUTHOR("John Rigby <jcrigby@gmail.com>"); |
