diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-17 04:43:24 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 15:22:46 -0500 |
commit | 1c48a5c93da63132b92c4bbcd18e690c51539df6 (patch) | |
tree | 746e990ce0f49e48e2cc9d55766485f468ca35f6 /drivers/rtc/rtc-mpc5121.c | |
parent | 793218dfea146946a076f4fe51e574db61034a3e (diff) |
dt: Eliminate of_platform_{,un}register_driver
Final step to eliminate of_platform_bus_type. They're all just
platform drivers now.
v2: fix type in pasemi_nand.c (thanks to Stephen Rothwell)
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/rtc/rtc-mpc5121.c')
-rw-r--r-- | drivers/rtc/rtc-mpc5121.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/drivers/rtc/rtc-mpc5121.c b/drivers/rtc/rtc-mpc5121.c index dfcdf0901d21..2b952c654b14 100644 --- a/drivers/rtc/rtc-mpc5121.c +++ b/drivers/rtc/rtc-mpc5121.c | |||
@@ -268,8 +268,7 @@ static const struct rtc_class_ops mpc5121_rtc_ops = { | |||
268 | .update_irq_enable = mpc5121_rtc_update_irq_enable, | 268 | .update_irq_enable = mpc5121_rtc_update_irq_enable, |
269 | }; | 269 | }; |
270 | 270 | ||
271 | static int __devinit mpc5121_rtc_probe(struct platform_device *op, | 271 | static int __devinit mpc5121_rtc_probe(struct platform_device *op) |
272 | const struct of_device_id *match) | ||
273 | { | 272 | { |
274 | struct mpc5121_rtc_data *rtc; | 273 | struct mpc5121_rtc_data *rtc; |
275 | int err = 0; | 274 | int err = 0; |
@@ -364,7 +363,7 @@ static struct of_device_id mpc5121_rtc_match[] __devinitdata = { | |||
364 | {}, | 363 | {}, |
365 | }; | 364 | }; |
366 | 365 | ||
367 | static struct of_platform_driver mpc5121_rtc_driver = { | 366 | static struct platform_driver mpc5121_rtc_driver = { |
368 | .driver = { | 367 | .driver = { |
369 | .name = "mpc5121-rtc", | 368 | .name = "mpc5121-rtc", |
370 | .owner = THIS_MODULE, | 369 | .owner = THIS_MODULE, |
@@ -376,13 +375,13 @@ static struct of_platform_driver mpc5121_rtc_driver = { | |||
376 | 375 | ||
377 | static int __init mpc5121_rtc_init(void) | 376 | static int __init mpc5121_rtc_init(void) |
378 | { | 377 | { |
379 | return of_register_platform_driver(&mpc5121_rtc_driver); | 378 | return platform_driver_register(&mpc5121_rtc_driver); |
380 | } | 379 | } |
381 | module_init(mpc5121_rtc_init); | 380 | module_init(mpc5121_rtc_init); |
382 | 381 | ||
383 | static void __exit mpc5121_rtc_exit(void) | 382 | static void __exit mpc5121_rtc_exit(void) |
384 | { | 383 | { |
385 | of_unregister_platform_driver(&mpc5121_rtc_driver); | 384 | platform_driver_unregister(&mpc5121_rtc_driver); |
386 | } | 385 | } |
387 | module_exit(mpc5121_rtc_exit); | 386 | module_exit(mpc5121_rtc_exit); |
388 | 387 | ||