]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/power/power_i2c.c
pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num()
[karo-tx-uboot.git] / drivers / power / power_i2c.c
index 66b3bab4625e4642ff46526b4f0c972eeb683d44..ac768708eadf22aacc4f2e6e15c66d07a5c248f5 100644 (file)
@@ -98,7 +98,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)
 
 int pmic_probe(struct pmic *p)
 {
-       I2C_SET_BUS(p->bus);
+       i2c_set_bus_num(p->bus);
        debug("Bus: %d PMIC:%s probed!\n", p->bus, p->name);
        if (i2c_probe(pmic_i2c_addr)) {
                printf("Can't find PMIC:%s\n", p->name);