aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-mpc5121.c
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@secretlab.ca>2011-02-17 04:43:24 -0500
committerGrant Likely <grant.likely@secretlab.ca>2011-02-28 15:22:46 -0500
commit1c48a5c93da63132b92c4bbcd18e690c51539df6 (patch)
tree746e990ce0f49e48e2cc9d55766485f468ca35f6 /drivers/rtc/rtc-mpc5121.c
parent793218dfea146946a076f4fe51e574db61034a3e (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.c9
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
271static int __devinit mpc5121_rtc_probe(struct platform_device *op, 271static 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
367static struct of_platform_driver mpc5121_rtc_driver = { 366static 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
377static int __init mpc5121_rtc_init(void) 376static 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}
381module_init(mpc5121_rtc_init); 380module_init(mpc5121_rtc_init);
382 381
383static void __exit mpc5121_rtc_exit(void) 382static 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}
387module_exit(mpc5121_rtc_exit); 386module_exit(mpc5121_rtc_exit);
388 387