aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mx31moboard-devboard.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-12 05:10:55 -0500
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-11-19 15:54:35 -0500
commit6a697e3d310d79ea0e385975c57084ce22b04b36 (patch)
tree64462dc21a24ad331214e834abd30eede199d0c5 /arch/arm/mach-mx3/mx31moboard-devboard.c
parenta528bc87841d958bbd394abc9266aee9cdf45cb8 (diff)
ARM: mx3: dynamically register mxc-mmc devices
Compared to the static devices the dynamic have a DMA resource. This should be save as it seems unused in the driver. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31moboard-devboard.c')
-rw-r--r--arch/arm/mach-mx3/mx31moboard-devboard.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mx31moboard-devboard.c b/arch/arm/mach-mx3/mx31moboard-devboard.c
index fc395a7a8599..3b75929f83f0 100644
--- a/arch/arm/mach-mx3/mx31moboard-devboard.c
+++ b/arch/arm/mach-mx3/mx31moboard-devboard.c
@@ -25,7 +25,6 @@
25#include <mach/common.h> 25#include <mach/common.h>
26#include <mach/iomux-mx3.h> 26#include <mach/iomux-mx3.h>
27#include <mach/hardware.h> 27#include <mach/hardware.h>
28#include <mach/mmc.h>
29#include <mach/mxc_ehci.h> 28#include <mach/mxc_ehci.h>
30#include <mach/ulpi.h> 29#include <mach/ulpi.h>
31 30
@@ -103,7 +102,7 @@ static void devboard_sdhc2_exit(struct device *dev, void *data)
103 gpio_free(SDHC2_CD); 102 gpio_free(SDHC2_CD);
104} 103}
105 104
106static struct imxmmc_platform_data sdhc2_pdata = { 105static const struct imxmmc_platform_data sdhc2_pdata __initconst = {
107 .get_ro = devboard_sdhc2_get_ro, 106 .get_ro = devboard_sdhc2_get_ro,
108 .init = devboard_sdhc2_init, 107 .init = devboard_sdhc2_init,
109 .exit = devboard_sdhc2_exit, 108 .exit = devboard_sdhc2_exit,
@@ -228,7 +227,7 @@ void __init mx31moboard_devboard_init(void)
228 227
229 imx31_add_imx_uart1(&uart_pdata); 228 imx31_add_imx_uart1(&uart_pdata);
230 229
231 mxc_register_device(&mxcsdhc_device1, &sdhc2_pdata); 230 imx31_add_mxc_mmc(1, &sdhc2_pdata);
232 231
233 devboard_init_sel_gpios(); 232 devboard_init_sel_gpios();
234 233