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/devices-imx21.h | |
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/devices-imx21.h')
-rw-r--r-- | arch/arm/mach-imx/devices-imx21.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-imx/devices-imx21.h b/arch/arm/mach-imx/devices-imx21.h index 0f782b6fcf88..a97e921bc225 100644 --- a/arch/arm/mach-imx/devices-imx21.h +++ b/arch/arm/mach-imx/devices-imx21.h | |||
@@ -33,6 +33,10 @@ extern const struct imx_imx_uart_1irq_data imx21_imx_uart_data[] __initconst; | |||
33 | #define imx21_add_imx_uart2(pdata) imx21_add_imx_uart(2, pdata) | 33 | #define imx21_add_imx_uart2(pdata) imx21_add_imx_uart(2, pdata) |
34 | #define imx21_add_imx_uart3(pdata) imx21_add_imx_uart(3, pdata) | 34 | #define imx21_add_imx_uart3(pdata) imx21_add_imx_uart(3, pdata) |
35 | 35 | ||
36 | extern const struct imx_mxc_mmc_data imx21_mxc_mmc_data[] __initconst; | ||
37 | #define imx21_add_mxc_mmc(id, pdata) \ | ||
38 | imx_add_mxc_mmc(&imx21_mxc_mmc_data[id], pdata) | ||
39 | |||
36 | extern const struct imx_mxc_nand_data imx21_mxc_nand_data __initconst; | 40 | extern const struct imx_mxc_nand_data imx21_mxc_nand_data __initconst; |
37 | #define imx21_add_mxc_nand(pdata) \ | 41 | #define imx21_add_mxc_nand(pdata) \ |
38 | imx_add_mxc_nand(&imx21_mxc_nand_data, pdata) | 42 | imx_add_mxc_nand(&imx21_mxc_nand_data, pdata) |