diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-22 04:09:14 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:50 -0400 |
commit | 06606ff1300ecb05a2a2953c9f735730950365f5 (patch) | |
tree | c34e823648d219d5f6288f68a50804cafe0f13f8 /arch/arm/mach-mx3/mx31lite-db.c | |
parent | 7536cf992f395cb431f723041183d14a91d89c84 (diff) |
ARM: imx: dynamically register spi_imx devices (imx31)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mx31lite-db.c')
-rw-r--r-- | arch/arm/mach-mx3/mx31lite-db.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mx31lite-db.c b/arch/arm/mach-mx3/mx31lite-db.c index e35d2eb85d30..3786e29752f5 100644 --- a/arch/arm/mach-mx3/mx31lite-db.c +++ b/arch/arm/mach-mx3/mx31lite-db.c | |||
@@ -37,8 +37,8 @@ | |||
37 | #include <mach/iomux-mx3.h> | 37 | #include <mach/iomux-mx3.h> |
38 | #include <mach/board-mx31lite.h> | 38 | #include <mach/board-mx31lite.h> |
39 | #include <mach/mmc.h> | 39 | #include <mach/mmc.h> |
40 | #include <mach/spi.h> | ||
41 | 40 | ||
41 | #include "devices-imx31.h" | ||
42 | #include "devices.h" | 42 | #include "devices.h" |
43 | 43 | ||
44 | /* | 44 | /* |
@@ -157,7 +157,7 @@ static int spi_internal_chipselect[] = { | |||
157 | MXC_SPI_CS(2), | 157 | MXC_SPI_CS(2), |
158 | }; | 158 | }; |
159 | 159 | ||
160 | static struct spi_imx_master spi0_pdata = { | 160 | static const struct spi_imx_master spi0_pdata __initconst = { |
161 | .chipselect = spi_internal_chipselect, | 161 | .chipselect = spi_internal_chipselect, |
162 | .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), | 162 | .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), |
163 | }; | 163 | }; |
@@ -199,7 +199,7 @@ void __init mx31lite_db_init(void) | |||
199 | "development board pins"); | 199 | "development board pins"); |
200 | mxc_register_device(&mxc_uart_device0, &uart_pdata); | 200 | mxc_register_device(&mxc_uart_device0, &uart_pdata); |
201 | mxc_register_device(&mxcsdhc_device0, &mmc_pdata); | 201 | mxc_register_device(&mxcsdhc_device0, &mmc_pdata); |
202 | mxc_register_device(&mxc_spi_device0, &spi0_pdata); | 202 | imx31_add_spi_imx0(&spi0_pdata); |
203 | platform_device_register(&litekit_led_device); | 203 | platform_device_register(&litekit_led_device); |
204 | mxc_register_device(&imx_wdt_device0, NULL); | 204 | mxc_register_device(&imx_wdt_device0, NULL); |
205 | mxc_register_device(&imx_rtc_device0, NULL); | 205 | mxc_register_device(&imx_rtc_device0, NULL); |