diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-16 12:03:05 -0400 |
---|---|---|
committer | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2010-06-30 03:00:43 -0400 |
commit | 4a9b8b0b061ef750b5ef31d1e9d2fa0206731f2f (patch) | |
tree | d6128f7116c4cefdb801897c6febe5e1297a1228 /arch/arm/mach-mx3/devices.c | |
parent | c69871597dd173af2d7615429c0ee6aa10fae42b (diff) |
ARM: imx: dynamically register imx-i2c devices (imx31)
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mx3/devices.c')
-rw-r--r-- | arch/arm/mach-mx3/devices.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c index c8db84942bff..0743214127a9 100644 --- a/arch/arm/mach-mx3/devices.c +++ b/arch/arm/mach-mx3/devices.c | |||
@@ -167,6 +167,7 @@ struct platform_device mxc_w1_master_device = { | |||
167 | .resource = mxc_w1_master_resources, | 167 | .resource = mxc_w1_master_resources, |
168 | }; | 168 | }; |
169 | 169 | ||
170 | #if defined(CONFIG_ARCH_MX35) | ||
170 | static struct resource mxc_i2c0_resources[] = { | 171 | static struct resource mxc_i2c0_resources[] = { |
171 | { | 172 | { |
172 | .start = I2C_BASE_ADDR, | 173 | .start = I2C_BASE_ADDR, |
@@ -223,6 +224,7 @@ struct platform_device mxc_i2c_device2 = { | |||
223 | .num_resources = ARRAY_SIZE(mxc_i2c2_resources), | 224 | .num_resources = ARRAY_SIZE(mxc_i2c2_resources), |
224 | .resource = mxc_i2c2_resources, | 225 | .resource = mxc_i2c2_resources, |
225 | }; | 226 | }; |
227 | #endif | ||
226 | 228 | ||
227 | #ifdef CONFIG_ARCH_MX31 | 229 | #ifdef CONFIG_ARCH_MX31 |
228 | static struct resource mxcsdhc0_resources[] = { | 230 | static struct resource mxcsdhc0_resources[] = { |