aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc')
-rw-r--r--drivers/rtc/rtc-mpc5121.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers/rtc/rtc-mpc5121.c
index b40c1ff1ebc8..09ccd8d3ba2a 100644
--- a/drivers/rtc/rtc-mpc5121.c
+++ b/drivers/rtc/rtc-mpc5121.c
@@ -248,8 +248,7 @@ static const struct rtc_class_ops mpc5121_rtc_ops = {
248 .alarm_irq_enable = mpc5121_rtc_alarm_irq_enable, 248 .alarm_irq_enable = mpc5121_rtc_alarm_irq_enable,
249}; 249};
250 250
251static int __devinit mpc5121_rtc_probe(struct platform_device *op, 251static int __devinit mpc5121_rtc_probe(struct platform_device *op)
252 const struct of_device_id *match)
253{ 252{
254 struct mpc5121_rtc_data *rtc; 253 struct mpc5121_rtc_data *rtc;
255 int err = 0; 254 int err = 0;
@@ -344,7 +343,7 @@ static struct of_device_id mpc5121_rtc_match[] __devinitdata = {
344 {}, 343 {},
345}; 344};
346 345
347static struct of_platform_driver mpc5121_rtc_driver = { 346static struct platform_driver mpc5121_rtc_driver = {
348 .driver = { 347 .driver = {
349 .name = "mpc5121-rtc", 348 .name = "mpc5121-rtc",
350 .owner = THIS_MODULE, 349 .owner = THIS_MODULE,
@@ -356,13 +355,13 @@ static struct of_platform_driver mpc5121_rtc_driver = {
356 355
357static int __init mpc5121_rtc_init(void) 356static int __init mpc5121_rtc_init(void)
358{ 357{
359 return of_register_platform_driver(&mpc5121_rtc_driver); 358 return platform_driver_register(&mpc5121_rtc_driver);
360} 359}
361module_init(mpc5121_rtc_init); 360module_init(mpc5121_rtc_init);
362 361
363static void __exit mpc5121_rtc_exit(void) 362static void __exit mpc5121_rtc_exit(void)
364{ 363{
365 of_unregister_platform_driver(&mpc5121_rtc_driver); 364 platform_driver_unregister(&mpc5121_rtc_driver);
366} 365}
367module_exit(mpc5121_rtc_exit); 366module_exit(mpc5121_rtc_exit);
368 367