diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-05 12:26:09 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-11-17 04:01:30 -0500 |
commit | 9d3d945a8d5be2c915f646e8dff8422486a77030 (patch) | |
tree | 7e0557484ef0e8c6de6e5da3f9d7b08ab1b5b2c4 /arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | |
parent | c194daad0e0de94ed5e03aa723eb56b4a3ae9738 (diff) |
ARM: imx: dynamically register mxc-mmc devices
... plus a trivial simplification of mx21ads_sdhc_init()
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/eukrea_mbimx27-baseboard.c')
-rw-r--r-- | arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c index a226e2540ebd..fa5aaded7c2e 100644 --- a/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c +++ b/arch/arm/mach-imx/eukrea_mbimx27-baseboard.c | |||
@@ -33,7 +33,6 @@ | |||
33 | #include <mach/common.h> | 33 | #include <mach/common.h> |
34 | #include <mach/iomux-mx27.h> | 34 | #include <mach/iomux-mx27.h> |
35 | #include <mach/hardware.h> | 35 | #include <mach/hardware.h> |
36 | #include <mach/mmc.h> | ||
37 | #include <mach/spi.h> | 36 | #include <mach/spi.h> |
38 | #include <mach/audmux.h> | 37 | #include <mach/audmux.h> |
39 | 38 | ||
@@ -305,7 +304,7 @@ static struct platform_device *platform_devices[] __initdata = { | |||
305 | &leds_gpio, | 304 | &leds_gpio, |
306 | }; | 305 | }; |
307 | 306 | ||
308 | static struct imxmmc_platform_data sdhc_pdata = { | 307 | static const struct imxmmc_platform_data sdhc_pdata __initconst = { |
309 | .dat3_card_detect = 1, | 308 | .dat3_card_detect = 1, |
310 | }; | 309 | }; |
311 | 310 | ||
@@ -351,7 +350,7 @@ void __init eukrea_mbimx27_baseboard_init(void) | |||
351 | #endif | 350 | #endif |
352 | 351 | ||
353 | imx27_add_imx_fb(&eukrea_mbimx27_fb_data); | 352 | imx27_add_imx_fb(&eukrea_mbimx27_fb_data); |
354 | mxc_register_device(&mxc_sdhc_device0, &sdhc_pdata); | 353 | imx27_add_mxc_mmc(0, &sdhc_pdata); |
355 | 354 | ||
356 | i2c_register_board_info(0, eukrea_mbimx27_i2c_devices, | 355 | i2c_register_board_info(0, eukrea_mbimx27_i2c_devices, |
357 | ARRAY_SIZE(eukrea_mbimx27_i2c_devices)); | 356 | ARRAY_SIZE(eukrea_mbimx27_i2c_devices)); |