From: Ɓukasz Majewski Date: Fri, 16 Aug 2013 13:35:26 +0000 (+0200) Subject: pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num() X-Git-Tag: v2013.10-rc2~12^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3fbb517f30fe68e29640bee63ab366569914d898;p=kernel%2Fu-boot.git pmic:i2c: Replace legacy I2C_SET_BUS macro with i2c_set_bus_num() After introduction of unified i2c model, the I2C_SET_BUS() macro is regarded as obsolete. Hence it is replaced with i2c_set_bus_num() function call. Signed-off-by: Lukasz Majewski Cc: Heiko Schocher Cc: Tom Rini --- diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c index 66b3bab..ac76870 100644 --- a/drivers/power/power_i2c.c +++ b/drivers/power/power_i2c.c @@ -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);