]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/arm/mach-omap2/board-2430sdp.c
Fix for the i2c initialization error on 2430sdp
[linux-2.6-omap-h63xx.git] / arch / arm / mach-omap2 / board-2430sdp.c
index e078a2a2ac0a50b493aad33ec8d19e4d67a6b148..780913e7446740fcb2e54dc7381c103224eca3bd 100644 (file)
@@ -379,8 +379,12 @@ static struct omap_board_config_kernel sdp2430_config[] __initdata = {
 
 static int __init omap2430_i2c_init(void)
 {
-       omap_register_i2c_bus(1, 400, NULL, 0);
+       /*
+        * Registering bus 2 first to avoid twl4030 misbehaving as 2430SDP
+        * has twl4030 on bus 2
+        */
        omap_register_i2c_bus(2, 2600, NULL, 0);
+       omap_register_i2c_bus(1, 400, NULL, 0);
        return 0;
 }