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 <fabio.estevam@freescale.com>
master
Fabio Estevam 10 years ago committed by Stefano Babic
parent 44f98f9c8e
commit e4b984d75e
  1. 3
      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)

Loading…
Cancel
Save