summaryrefslogtreecommitdiff
path: root/drivers/power/power_i2c.c
diff options
context:
space:
mode:
authorƁukasz Majewski <l.majewski@samsung.com>2013-08-16 15:35:26 +0200
committerHeiko Schocher <hs@denx.de>2013-08-20 11:15:32 +0200
commit3fbb517f30fe68e29640bee63ab366569914d898 (patch)
tree58921d06fd05d8a1a0ca3279e9354a67750c7b9d /drivers/power/power_i2c.c
parent2936df1f1183f0bb884489e993a0381c3f179ea6 (diff)
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 <l.majewski@samsung.com> Cc: Heiko Schocher <hs@denx.de> Cc: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers/power/power_i2c.c')
-rw-r--r--drivers/power/power_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/power_i2c.c b/drivers/power/power_i2c.c
index 66b3bab462..ac768708ea 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);