aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-mx3/mach-mx31lilly.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-mx31lilly.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-mx31lilly.c')
-rw-r--r--arch/arm/mach-mx3/mach-mx31lilly.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-mx3/mach-mx31lilly.c b/arch/arm/mach-mx3/mach-mx31lilly.c
index 13cb61a3bf85..d228b9e6701a 100644
--- a/arch/arm/mach-mx3/mach-mx31lilly.c
+++ b/arch/arm/mach-mx3/mach-mx31lilly.c
@@ -42,10 +42,10 @@
42#include <mach/common.h> 42#include <mach/common.h>
43#include <mach/iomux-mx3.h> 43#include <mach/iomux-mx3.h>
44#include <mach/board-mx31lilly.h> 44#include <mach/board-mx31lilly.h>
45#include <mach/spi.h>
46#include <mach/mxc_ehci.h> 45#include <mach/mxc_ehci.h>
47#include <mach/ulpi.h> 46#include <mach/ulpi.h>
48 47
48#include "devices-imx31.h"
49#include "devices.h" 49#include "devices.h"
50 50
51/* 51/*
@@ -253,12 +253,12 @@ static int spi_internal_chipselect[] = {
253 MXC_SPI_CS(2), 253 MXC_SPI_CS(2),
254}; 254};
255 255
256static struct spi_imx_master spi0_pdata = { 256static const struct spi_imx_master spi0_pdata __initconst = {
257 .chipselect = spi_internal_chipselect, 257 .chipselect = spi_internal_chipselect,
258 .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), 258 .num_chipselect = ARRAY_SIZE(spi_internal_chipselect),
259}; 259};
260 260
261static struct spi_imx_master spi1_pdata = { 261static const struct spi_imx_master spi1_pdata __initconst = {
262 .chipselect = spi_internal_chipselect, 262 .chipselect = spi_internal_chipselect,
263 .num_chipselect = ARRAY_SIZE(spi_internal_chipselect), 263 .num_chipselect = ARRAY_SIZE(spi_internal_chipselect),
264}; 264};
@@ -310,8 +310,8 @@ static void __init mx31lilly_board_init(void)
310 mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS1__SS1, "SPI2_SS1"); 310 mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS1__SS1, "SPI2_SS1");
311 mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS2__SS2, "SPI2_SS2"); 311 mxc_iomux_alloc_pin(MX31_PIN_CSPI2_SS2__SS2, "SPI2_SS2");
312 312
313 mxc_register_device(&mxc_spi_device0, &spi0_pdata); 313 imx31_add_spi_imx0(&spi0_pdata);
314 mxc_register_device(&mxc_spi_device1, &spi1_pdata); 314 imx31_add_spi_imx1(&spi1_pdata);
315 spi_register_board_info(&mc13783_dev, 1); 315 spi_register_board_info(&mc13783_dev, 1);
316 316
317 platform_add_devices(devices, ARRAY_SIZE(devices)); 317 platform_add_devices(devices, ARRAY_SIZE(devices));