]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mx6sabresd: Use 'int' for return values
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 21 Jul 2015 23:02:49 +0000 (20:02 -0300)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 9 Sep 2015 11:49:06 +0000 (13:49 +0200)
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 <fabio.estevam@freescale.com>
board/freescale/mx6sabresd/mx6sabresd.c

index bc569d94923f923e90c3de1e0fc04a5bc8fa7e0b..c6c48adb83bb34a95fd7e01ad257f0c4d8fc709f 100644 (file)
@@ -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)