cpuimx27: fix i2c bus selection
authorEric Bénard <eric@eukrea.com>
Fri, 8 Oct 2010 08:37:41 +0000 (10:37 +0200)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 8 Oct 2010 13:08:41 +0000 (15:08 +0200)
Recent clean of i.MX devices registration changed the i2C bus number
selected for our platform (Freescale start peripheral ID at 1, kernel
now start it at 0 so i.MX27's i2c 1 is kernel's i2c 0).
Without this fix, i2c is unusable on this platform.

Signed-off-by: Eric Bénard <eric@eukrea.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mach-cpuimx27.c

index 575ff1ae85a738f84cf48720d19e850b96caa0e5..ac30883a7164a0c5e4a02c5a62659fa0e29e56c1 100644 (file)
@@ -259,7 +259,7 @@ static void __init eukrea_cpuimx27_init(void)
        i2c_register_board_info(0, eukrea_cpuimx27_i2c_devices,
                                ARRAY_SIZE(eukrea_cpuimx27_i2c_devices));
 
-       imx27_add_i2c_imx1(&cpuimx27_i2c1_data);
+       imx27_add_i2c_imx0(&cpuimx27_i2c1_data);
 
        platform_add_devices(platform_devices, ARRAY_SIZE(platform_devices));