]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
viafb: another workaround for OLPCs weird wiring
authorFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Sun, 19 Feb 2012 01:23:20 +0000 (01:23 +0000)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Tue, 21 Feb 2012 08:50:19 +0000 (08:50 +0000)
On OLPC we must not touch this I2C bus or it will hang.

Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/via/viafbdev.c

index 47911658f68474d88cb849ad70c4e9d04d0cf7f8..9cfa92ef6bd0d02a28f90c1d72e938bbac3dff33 100644 (file)
@@ -1752,8 +1752,10 @@ static void __devinit i2c_bus_probe(struct viafb_shared *shared)
        shared->i2c_31 = via_aux_probe(viafb_find_i2c_adapter(VIA_PORT_31));
 
        /* FIXME: what is this? */
-       printk(KERN_INFO "viafb: Probing I2C bus 0x2C\n");
-       shared->i2c_2C = via_aux_probe(viafb_find_i2c_adapter(VIA_PORT_2C));
+       if (!machine_is_olpc()) {
+               printk(KERN_INFO "viafb: Probing I2C bus 0x2C\n");
+               shared->i2c_2C = via_aux_probe(viafb_find_i2c_adapter(VIA_PORT_2C));
+       }
 
        printk(KERN_INFO "viafb: Finished I2C bus probing");
 }