]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/power/power_fsl.c
Merge branch 'master' of git://git.denx.de/u-boot-arm
[karo-tx-uboot.git] / drivers / power / power_fsl.c
index ed778f333e5387d3e85a4544557a8fabfb20962a..ac0b541d797088afc3056e7a4b83e9ee8adb9f6b 100644 (file)
@@ -36,10 +36,10 @@ int pmic_init(unsigned char bus)
 
        p->name = name;
        p->number_of_regs = PMIC_NUM_OF_REGS;
+       p->bus = bus;
 
 #if defined(CONFIG_POWER_SPI)
        p->interface = PMIC_SPI;
-       p->bus = CONFIG_FSL_PMIC_BUS;
        p->hw.spi.cs = CONFIG_FSL_PMIC_CS;
        p->hw.spi.clk = CONFIG_FSL_PMIC_CLK;
        p->hw.spi.mode = CONFIG_FSL_PMIC_MODE;
@@ -50,7 +50,6 @@ int pmic_init(unsigned char bus)
        p->interface = PMIC_I2C;
        p->hw.i2c.addr = CONFIG_SYS_FSL_PMIC_I2C_ADDR;
        p->hw.i2c.tx_num = FSL_PMIC_I2C_LENGTH;
-       p->bus = bus;
 #else
 #error "You must select CONFIG_POWER_SPI or CONFIG_PMIC_I2C"
 #endif