From: Fabio Estevam Date: Wed, 20 Nov 2013 22:26:03 +0000 (-0200) Subject: mx51evk: Fix pmic_init() argument X-Git-Tag: v2014.01-rc3~9^2~47^2~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=56f9cfbb48b56dfc08debaa78624aa7522520c0b;p=u-boot mx51evk: Fix pmic_init() argument On mx51evk 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 Acked-by: Stefano Babic --- diff --git a/board/freescale/mx51evk/mx51evk.c b/board/freescale/mx51evk/mx51evk.c index d01465ecae..9b43c84e79 100644 --- a/board/freescale/mx51evk/mx51evk.c +++ b/board/freescale/mx51evk/mx51evk.c @@ -174,7 +174,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;