aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-mx31lite.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-22 04:09:14 -0400
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-30 03:00:50 -0400
commit06606ff1300ecb05a2a2953c9f735730950365f5 (patch)
treec34e823648d219d5f6288f68a50804cafe0f13f8 /arch/arm/mach-mx3/mach-mx31lite.c
parent7536cf992f395cb431f723041183d14a91d89c84 (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/mach-mx31lite.c')
-rw-r--r--arch/arm/mach-mx3/mach-mx31lite.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31lite.c b/arch/arm/mach-mx3/mach-mx31lite.c
index f0a68e64e004..634b8559c81b 100644
--- a/arch/arm/mach-mx3/mach-mx31lite.c
+++ b/arch/arm/mach-mx3/mach-mx31lite.c
@@ -41,7 +41,6 @@
41#include <mach/imx-uart.h> 41#include <mach/imx-uart.h>
42#include <mach/iomux-mx3.h> 42#include <mach/iomux-mx3.h>
43#include <mach/irqs.h> 43#include <mach/irqs.h>
44#include <mach/spi.h>
45#include <mach/mxc_ehci.h> 44#include <mach/mxc_ehci.h>
46#include <mach/ulpi.h> 45#include <mach/ulpi.h>
47 46
@@ -109,7 +108,7 @@ static int spi_internal_chipselect[] = {
109 MXC_SPI_CS(0), 108 MXC_SPI_CS(0),
110}; 109};
111 110
112static struct spi_imx_master spi1_pdata = { 111static const struct spi_imx_master spi1_pdata __initconst = {
113 .chipselect = spi_internal_chipselect, 112 .chipselect = spi_internal_chipselect,
114 .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), 113 .num_chipselect = ARRAY_SIZE(spi_internal_chipselect),
115}; 114};
@@ -252,7 +251,7 @@ static void __init mxc_board_init(void)
252 platform_device_register(&physmap_flash_device); 251 platform_device_register(&physmap_flash_device);
253 imx31_add_mxc_nand(&mx31lite_nand_board_info); 252 imx31_add_mxc_nand(&mx31lite_nand_board_info);
254 253
255 mxc_register_device(&mxc_spi_device1, &spi1_pdata); 254 imx31_add_spi_imx1(&spi1_pdata);
256 spi_register_board_info(&mc13783_spi_dev, 1); 255 spi_register_board_info(&mc13783_spi_dev, 1);
257 256
258#if defined(CONFIG_USB_ULPI) 257#if defined(CONFIG_USB_ULPI)