aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/arm/mach-omap1/mcbsp.c2
-rw-r--r--arch/arm/mach-omap2/mcbsp.c2
-rw-r--r--arch/arm/plat-omap/include/plat/mcbsp.h1
-rw-r--r--arch/arm/plat-omap/mcbsp.c11
4 files changed, 8 insertions, 8 deletions
diff --git a/arch/arm/mach-omap1/mcbsp.c b/arch/arm/mach-omap1/mcbsp.c
index 91f9abbd3250..fe11e135730c 100644
--- a/arch/arm/mach-omap1/mcbsp.c
+++ b/arch/arm/mach-omap1/mcbsp.c
@@ -449,7 +449,7 @@ static int __init omap1_mcbsp_init(void)
449 omap16xx_mcbsp_pdata, 449 omap16xx_mcbsp_pdata,
450 OMAP16XX_MCBSP_COUNT); 450 OMAP16XX_MCBSP_COUNT);
451 451
452 return omap_mcbsp_init(); 452 return 0;
453} 453}
454 454
455arch_initcall(omap1_mcbsp_init); 455arch_initcall(omap1_mcbsp_init);
diff --git a/arch/arm/mach-omap2/mcbsp.c b/arch/arm/mach-omap2/mcbsp.c
index fb4bcf81a183..b36d443a6fd9 100644
--- a/arch/arm/mach-omap2/mcbsp.c
+++ b/arch/arm/mach-omap2/mcbsp.c
@@ -193,6 +193,6 @@ static int __init omap2_mcbsp_init(void)
193 if (!mcbsp_ptr) 193 if (!mcbsp_ptr)
194 return -ENOMEM; 194 return -ENOMEM;
195 195
196 return omap_mcbsp_init(); 196 return 0;
197} 197}
198arch_initcall(omap2_mcbsp_init); 198arch_initcall(omap2_mcbsp_init);
diff --git a/arch/arm/plat-omap/include/plat/mcbsp.h b/arch/arm/plat-omap/include/plat/mcbsp.h
index 8fa74e2c9d6e..7e4f893c271f 100644
--- a/arch/arm/plat-omap/include/plat/mcbsp.h
+++ b/arch/arm/plat-omap/include/plat/mcbsp.h
@@ -360,7 +360,6 @@ struct omap_mcbsp_dev_attr {
360extern struct omap_mcbsp **mcbsp_ptr; 360extern struct omap_mcbsp **mcbsp_ptr;
361extern int omap_mcbsp_count; 361extern int omap_mcbsp_count;
362 362
363int omap_mcbsp_init(void);
364void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg * config); 363void omap_mcbsp_config(unsigned int id, const struct omap_mcbsp_reg_cfg * config);
365void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold); 364void omap_mcbsp_set_tx_threshold(unsigned int id, u16 threshold);
366void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold); 365void omap_mcbsp_set_rx_threshold(unsigned int id, u16 threshold);
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
1357int __init omap_mcbsp_init(void) 1357module_platform_driver(omap_mcbsp_driver);
1358{ 1358
1359 /* Register the McBSP driver */ 1359MODULE_AUTHOR("Samuel Ortiz <samuel.ortiz@nokia.com>");
1360 return platform_driver_register(&omap_mcbsp_driver); 1360MODULE_DESCRIPTION("OMAP McBSP core driver");
1361} 1361MODULE_LICENSE("GPL");
1362MODULE_ALIAS("platform:omap-mcbsp");