i.MX27: visstrim_m10: Register I2C devices after I2C busses have been added.
authorJavier Martin <javier.martin@vista-silicon.com>
Tue, 28 Feb 2012 16:31:49 +0000 (17:31 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Fri, 2 Mar 2012 07:25:06 +0000 (08:25 +0100)
Signed-off-by: Javier Martin <javier.martin@vista-silicon.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/mach-imx/mach-imx27_visstrim_m10.c

index ea080ef9b6816d4cca9ea329c175f31aa1f26d3c..479d9e8bf84be6408fa490375acf2957b9edd0a0 100644 (file)
@@ -257,10 +257,11 @@ static void __init visstrim_m10_board_init(void)
        imx27_add_imx_ssi(0, &visstrim_m10_ssi_pdata);
        imx27_add_imx_uart0(&uart_pdata);
 
-       i2c_register_board_info(0, visstrim_m10_i2c_devices,
-                               ARRAY_SIZE(visstrim_m10_i2c_devices));
        imx27_add_imx_i2c(0, &visstrim_m10_i2c_data);
        imx27_add_imx_i2c(1, &visstrim_m10_i2c_data);
+       i2c_register_board_info(0, visstrim_m10_i2c_devices,
+                               ARRAY_SIZE(visstrim_m10_i2c_devices));
+
        imx27_add_mxc_mmc(0, &visstrim_m10_sdhc_pdata);
        imx27_add_mxc_ehci_otg(&visstrim_m10_usbotg_pdata);
        imx27_add_fec(NULL);