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/mach-mxt_td60.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/mach-mxt_td60.c')
-rw-r--r-- | arch/arm/mach-imx/mach-mxt_td60.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-imx/mach-mxt_td60.c b/arch/arm/mach-imx/mach-mxt_td60.c index 0c944858e884..d1a3158f1a82 100644 --- a/arch/arm/mach-imx/mach-mxt_td60.c +++ b/arch/arm/mach-imx/mach-mxt_td60.c | |||
@@ -31,7 +31,6 @@ | |||
31 | #include <mach/iomux-mx27.h> | 31 | #include <mach/iomux-mx27.h> |
32 | #include <mach/mxc_nand.h> | 32 | #include <mach/mxc_nand.h> |
33 | #include <linux/i2c/pca953x.h> | 33 | #include <linux/i2c/pca953x.h> |
34 | #include <mach/mmc.h> | ||
35 | 34 | ||
36 | #include "devices-imx27.h" | 35 | #include "devices-imx27.h" |
37 | #include "devices.h" | 36 | #include "devices.h" |
@@ -225,7 +224,7 @@ static void mxt_td60_sdhc1_exit(struct device *dev, void *data) | |||
225 | free_irq(IRQ_GPIOF(8), data); | 224 | free_irq(IRQ_GPIOF(8), data); |
226 | } | 225 | } |
227 | 226 | ||
228 | static struct imxmmc_platform_data sdhc1_pdata = { | 227 | static const struct imxmmc_platform_data sdhc1_pdata __initconst = { |
229 | .init = mxt_td60_sdhc1_init, | 228 | .init = mxt_td60_sdhc1_init, |
230 | .exit = mxt_td60_sdhc1_exit, | 229 | .exit = mxt_td60_sdhc1_exit, |
231 | }; | 230 | }; |
@@ -253,7 +252,7 @@ static void __init mxt_td60_board_init(void) | |||
253 | imx27_add_imx_i2c(0, &mxt_td60_i2c0_data); | 252 | imx27_add_imx_i2c(0, &mxt_td60_i2c0_data); |
254 | imx27_add_imx_i2c(1, &mxt_td60_i2c1_data); | 253 | imx27_add_imx_i2c(1, &mxt_td60_i2c1_data); |
255 | imx27_add_imx_fb(&mxt_td60_fb_data); | 254 | imx27_add_imx_fb(&mxt_td60_fb_data); |
256 | mxc_register_device(&mxc_sdhc_device0, &sdhc1_pdata); | 255 | imx27_add_mxc_mmc(0, &sdhc1_pdata); |
257 | imx27_add_fec(NULL); | 256 | imx27_add_fec(NULL); |
258 | } | 257 | } |
259 | 258 | ||