]> git.sur5r.net Git - u-boot/commitdiff
efikamx: Fix pmic_init() argument
authorFabio Estevam <fabio.estevam@freescale.com>
Wed, 20 Nov 2013 22:26:05 +0000 (20:26 -0200)
committerStefano Babic <sbabic@denx.de>
Wed, 27 Nov 2013 08:39:21 +0000 (09:39 +0100)
On efikamx board the PMIC is connected via SPI interface, so it does not make
sense to pass I2C_PMIC into the pmic_init() interface.

Pass the SPI bus number via CONFIG_FSL_PMIC_BUS option instead.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
board/genesi/mx51_efikamx/efikamx.c

index 76753f90f6b4620dbaeb965d0f82be6a73b2f09d..16769e53327edf187cfced3c397d8a9b9e7243d0 100644 (file)
@@ -159,7 +159,7 @@ static void power_init(void)
        struct pmic *p;
        int ret;
 
-       ret = pmic_init(I2C_PMIC);
+       ret = pmic_init(CONFIG_FSL_PMIC_BUS);
        if (ret)
                return;