summaryrefslogtreecommitdiff
path: root/arch/arm/mach-mx3/devices.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-16 16:03:05 (GMT)
committerUwe Kleine-König <u.kleine-koenig@pengutronix.de>2010-06-30 07:00:43 (GMT)
commit4a9b8b0b061ef750b5ef31d1e9d2fa0206731f2f (patch)
treed6128f7116c4cefdb801897c6febe5e1297a1228 /arch/arm/mach-mx3/devices.c
parentc69871597dd173af2d7615429c0ee6aa10fae42b (diff)
downloadlinux-4a9b8b0b061ef750b5ef31d1e9d2fa0206731f2f.tar.xz
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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/mach-mx3/devices.c b/arch/arm/mach-mx3/devices.c
index c8db849..0743214 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 = {
.resource = mxc_w1_master_resources,
};
+#if defined(CONFIG_ARCH_MX35)
static struct resource mxc_i2c0_resources[] = {
{
.start = I2C_BASE_ADDR,
@@ -223,6 +224,7 @@ struct platform_device mxc_i2c_device2 = {
.num_resources = ARRAY_SIZE(mxc_i2c2_resources),
.resource = mxc_i2c2_resources,
};
+#endif
#ifdef CONFIG_ARCH_MX31
static struct resource mxcsdhc0_resources[] = {