From e4b984d75eb7589e91cbb8b939e0fc1418d68446 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Tue, 21 Jul 2015 20:02:49 -0300 Subject: [PATCH] mx6sabresd: Use 'int' for return values The variable 'ret' is used to store the value returned by pfuze_mode_init(), so it should of type 'int' instead of 'unsigned int' in order to correctly handle negative numbers. Fix the variable type. Signed-off-by: Fabio Estevam --- board/freescale/mx6sabresd/mx6sabresd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c index 23f8f6b76f..fa800f4b22 100644 --- a/board/freescale/mx6sabresd/mx6sabresd.c +++ b/board/freescale/mx6sabresd/mx6sabresd.c @@ -631,7 +631,8 @@ int board_init(void) int power_init_board(void) { struct pmic *p; - unsigned int reg, ret; + unsigned int reg; + int ret; p = pfuze_common_init(I2C_PMIC); if (!p) -- 2.30.2