]> git.sur5r.net Git - u-boot/commitdiff
mx6sabresd: Use 'int' for return values
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 21 Jul 2015 23:02:49 +0000 (20:02 -0300)
committerStefano Babic <sbabic@denx.de>
Sun, 26 Jul 2015 10:12:04 +0000 (12:12 +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 23f8f6b76fdab9f55fef17e23b2aca825e3f025e..fa800f4b22bfd2c07a90482cb5f9102d43370500 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)