From: Fabio Estevam Date: Wed, 20 Nov 2013 22:26:04 +0000 (-0200) Subject: mx31pdk: Fix pmic_init() argument X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=4e785c6ae90724b8e0b9610a61e6afc0a8f4379d;p=u-boot.git mx31pdk: Fix pmic_init() argument On mx31pdk 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 --- diff --git a/board/freescale/mx31pdk/mx31pdk.c b/board/freescale/mx31pdk/mx31pdk.c index 148b4f47a5..13b9d51dd1 100644 --- a/board/freescale/mx31pdk/mx31pdk.c +++ b/board/freescale/mx31pdk/mx31pdk.c @@ -85,7 +85,7 @@ int board_late_init(void) struct pmic *p; int ret; - ret = pmic_init(I2C_PMIC); + ret = pmic_init(CONFIG_FSL_PMIC_BUS); if (ret) return ret;