diff options
author | Grant Likely <grant.likely@secretlab.ca> | 2011-02-22 21:59:54 -0500 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2011-02-28 03:36:39 -0500 |
commit | 000061245a6797d542854106463b6b20fbdcb12e (patch) | |
tree | 08ead444b59ce33cf533b19c1c6d338dcec4649d /drivers/dma/fsldma.c | |
parent | 710ac54be44e0cc53f5bf29b03d12c8706e7077a (diff) |
dt/powerpc: Eliminate users of of_platform_{,un}register_driver
Get rid of old users of of_platform_driver in arch/powerpc. Most
of_platform_driver users can be converted to use the platform_bus
directly.
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/dma/fsldma.c')
-rw-r--r-- | drivers/dma/fsldma.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c index 4de947a450fc..e3854a8f0de0 100644 --- a/drivers/dma/fsldma.c +++ b/drivers/dma/fsldma.c | |||
@@ -1281,8 +1281,7 @@ static void fsl_dma_chan_remove(struct fsldma_chan *chan) | |||
1281 | kfree(chan); | 1281 | kfree(chan); |
1282 | } | 1282 | } |
1283 | 1283 | ||
1284 | static int __devinit fsldma_of_probe(struct platform_device *op, | 1284 | static int __devinit fsldma_of_probe(struct platform_device *op) |
1285 | const struct of_device_id *match) | ||
1286 | { | 1285 | { |
1287 | struct fsldma_device *fdev; | 1286 | struct fsldma_device *fdev; |
1288 | struct device_node *child; | 1287 | struct device_node *child; |
@@ -1414,20 +1413,13 @@ static struct of_platform_driver fsldma_of_driver = { | |||
1414 | 1413 | ||
1415 | static __init int fsldma_init(void) | 1414 | static __init int fsldma_init(void) |
1416 | { | 1415 | { |
1417 | int ret; | ||
1418 | |||
1419 | pr_info("Freescale Elo / Elo Plus DMA driver\n"); | 1416 | pr_info("Freescale Elo / Elo Plus DMA driver\n"); |
1420 | 1417 | return platform_driver_register(&fsldma_of_driver); | |
1421 | ret = of_register_platform_driver(&fsldma_of_driver); | ||
1422 | if (ret) | ||
1423 | pr_err("fsldma: failed to register platform driver\n"); | ||
1424 | |||
1425 | return ret; | ||
1426 | } | 1418 | } |
1427 | 1419 | ||
1428 | static void __exit fsldma_exit(void) | 1420 | static void __exit fsldma_exit(void) |
1429 | { | 1421 | { |
1430 | of_unregister_platform_driver(&fsldma_of_driver); | 1422 | platform_driver_unregister(&fsldma_of_driver); |
1431 | } | 1423 | } |
1432 | 1424 | ||
1433 | subsys_initcall(fsldma_init); | 1425 | subsys_initcall(fsldma_init); |