diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 13:25:34 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:44 -0400 |
commit | 7cdc8fa7120f97f40d36547854ae127dc0318e3a (patch) | |
tree | 54d2b57a0f0f14063fa995b99c7a64de9d473dc1 /arch/arm/mach-mx3/mach-pcm043.c | |
parent | 4a9b8b0b061ef750b5ef31d1e9d2fa0206731f2f (diff) |
ARM: imx: dynamically register imx-i2c devices (imx35)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/mach-pcm043.c')
-rw-r--r-- | arch/arm/mach-mx3/mach-pcm043.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/arch/arm/mach-mx3/mach-pcm043.c b/arch/arm/mach-mx3/mach-pcm043.c index 58de3055b85e..21305c67afcf 100644 --- a/arch/arm/mach-mx3/mach-pcm043.c +++ b/arch/arm/mach-mx3/mach-pcm043.c | |||
@@ -37,9 +37,6 @@ | |||
37 | #include <mach/hardware.h> | 37 | #include <mach/hardware.h> |
38 | #include <mach/common.h> | 38 | #include <mach/common.h> |
39 | #include <mach/imx-uart.h> | 39 | #include <mach/imx-uart.h> |
40 | #if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE | ||
41 | #include <mach/i2c.h> | ||
42 | #endif | ||
43 | #include <mach/iomux-mx35.h> | 40 | #include <mach/iomux-mx35.h> |
44 | #include <mach/ipu.h> | 41 | #include <mach/ipu.h> |
45 | #include <mach/mx3fb.h> | 42 | #include <mach/mx3fb.h> |
@@ -123,7 +120,7 @@ static struct imxuart_platform_data uart_pdata = { | |||
123 | }; | 120 | }; |
124 | 121 | ||
125 | #if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE | 122 | #if defined CONFIG_I2C_IMX || defined CONFIG_I2C_IMX_MODULE |
126 | static struct imxi2c_platform_data pcm043_i2c_1_data = { | 123 | static const struct imxi2c_platform_data pcm043_i2c0_data __initconst = { |
127 | .bitrate = 50000, | 124 | .bitrate = 50000, |
128 | }; | 125 | }; |
129 | 126 | ||
@@ -368,7 +365,7 @@ static void __init mxc_board_init(void) | |||
368 | i2c_register_board_info(0, pcm043_i2c_devices, | 365 | i2c_register_board_info(0, pcm043_i2c_devices, |
369 | ARRAY_SIZE(pcm043_i2c_devices)); | 366 | ARRAY_SIZE(pcm043_i2c_devices)); |
370 | 367 | ||
371 | mxc_register_device(&mxc_i2c_device0, &pcm043_i2c_1_data); | 368 | imx35_add_imx_i2c0(&pcm043_i2c0_data); |
372 | #endif | 369 | #endif |
373 | 370 | ||
374 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); | 371 | mxc_register_device(&mx3_ipu, &mx3_ipu_data); |