Message ID | 1368795355-6717-6-git-send-email-p.wilczek@samsung.com |
---|---|
State | Changes Requested |
Delegated to: | Minkyu Kang |
Headers | show |
diff --git a/drivers/power/power_core.c b/drivers/power/power_core.c index 90df2c5..befd458 100644 --- a/drivers/power/power_core.c +++ b/drivers/power/power_core.c @@ -164,6 +164,14 @@ int do_pmic(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) if (!p) return CMD_RET_FAILURE; + /* this #ifdef should go away when all i2c drivers */ + /* are adapted to the new i2c framework */ +#ifdef CONFIG_SYS_I2C + i2c_set_bus_num(p->bus); +#else + I2C_SET_BUS(p->bus); +#endif + if (strcmp(cmd, "dump") == 0) { if (pmic_dump(p)) return CMD_RET_FAILURE;