]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/i2c/sh_i2c.c
dm: i2c: Add support for multiplexed I2C buses
[karo-tx-uboot.git] / drivers / i2c / sh_i2c.c
index cc191007503003e12ffa46e598537e262ed15dce..e7e96921d21d6efa7ab56e6ccceb41d5f918d4ef 100644 (file)
@@ -269,7 +269,9 @@ static int sh_i2c_write(struct i2c_adapter *adap, uint8_t chip, uint addr,
 static int
 sh_i2c_probe(struct i2c_adapter *adap, u8 dev)
 {
-       return sh_i2c_read(adap, dev, 0, 0, NULL, 0);
+       u8 dummy[1];
+
+       return sh_i2c_read(adap, dev, 0, 0, dummy, sizeof dummy);
 }
 
 static unsigned int sh_i2c_set_bus_speed(struct i2c_adapter *adap,