summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2011-10-11 19:18:05 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2011-10-27 21:56:31 +0200
commitd69edadee7035a5607451a3ee014f4e649e8cf92 (patch)
treee7cc5adaf5bdcd0bb34cdea8b037dc7e0a0bc214 /drivers/misc
parent9c38f7dfeb3543a35a250fff744d5039badb941b (diff)
downloadu-boot-d69edadee7035a5607451a3ee014f4e649e8cf92.tar.gz
misc: pmic: use I2C_SET_BUS in pmic I2C
Instead of using directly the i2c_set_bus() function, the I2C_SET_BUS macro must be used to avoid build errors for targets without multibus I2C. Signed-off-by: Stefano Babic <sbabic@denx.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/pmic_i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/pmic_i2c.c b/drivers/misc/pmic_i2c.c
index b82e8997e0..ad55d6447e 100644
--- a/drivers/misc/pmic_i2c.c
+++ b/drivers/misc/pmic_i2c.c
@@ -81,7 +81,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)
int pmic_probe(struct pmic *p)
{
- i2c_set_bus_num(p->bus);
+ I2C_SET_BUS(p->bus);
debug("PMIC:%s probed!\n", p->name);
if (i2c_probe(pmic_i2c_addr)) {
printf("Can't find PMIC:%s\n", p->name);