mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-18 04:11:31 +00:00
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>
This commit is contained in:
parent
9c38f7dfeb
commit
d69edadee7
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ int pmic_reg_read(struct pmic *p, u32 reg, u32 *val)
|
||||||
|
|
||||||
int pmic_probe(struct pmic *p)
|
int pmic_probe(struct pmic *p)
|
||||||
{
|
{
|
||||||
i2c_set_bus_num(p->bus);
|
I2C_SET_BUS(p->bus);
|
||||||
debug("PMIC:%s probed!\n", p->name);
|
debug("PMIC:%s probed!\n", p->name);
|
||||||
if (i2c_probe(pmic_i2c_addr)) {
|
if (i2c_probe(pmic_i2c_addr)) {
|
||||||
printf("Can't find PMIC:%s\n", p->name);
|
printf("Can't find PMIC:%s\n", p->name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue