diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-01-26 05:38:31 -0500 |
---|---|---|
committer | Liam Girdwood <lrg@ti.com> | 2012-03-12 09:34:19 -0400 |
commit | 0210dc4eafcfd1b38ac178ebf63627f359d6371d (patch) | |
tree | 1106068c62c7c79e5606193eff1224135a557192 /arch/arm/plat-omap/mcbsp.c | |
parent | 0324e02a077de6bffff566fa43fd7b46f4b3ebd8 (diff) |
ARM: OMAP: mcbsp: Convert core driver to proper platform driver
Convert the plat-omap/mcbsp.c driver to be proper platform driver.
Remove the omap_mcbsp_init function call which was called from
mach-omap1/2/mcbsp.c to register the platform driver for the just
created platform device in the same function.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Tested-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'arch/arm/plat-omap/mcbsp.c')
-rw-r--r-- | arch/arm/plat-omap/mcbsp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/arch/arm/plat-omap/mcbsp.c b/arch/arm/plat-omap/mcbsp.c index 4b15cd7926d7..3c704f36e0f7 100644 --- a/arch/arm/plat-omap/mcbsp.c +++ b/arch/arm/plat-omap/mcbsp.c | |||
@@ -1354,8 +1354,9 @@ static struct platform_driver omap_mcbsp_driver = { | |||
1354 | }, | 1354 | }, |
1355 | }; | 1355 | }; |
1356 | 1356 | ||
1357 | int __init omap_mcbsp_init(void) | 1357 | module_platform_driver(omap_mcbsp_driver); |
1358 | { | 1358 | |
1359 | /* Register the McBSP driver */ | 1359 | MODULE_AUTHOR("Samuel Ortiz <samuel.ortiz@nokia.com>"); |
1360 | return platform_driver_register(&omap_mcbsp_driver); | 1360 | MODULE_DESCRIPTION("OMAP McBSP core driver"); |
1361 | } | 1361 | MODULE_LICENSE("GPL"); |
1362 | MODULE_ALIAS("platform:omap-mcbsp"); | ||