mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-10-18 11:01:26 +02:00
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>
This commit is contained in:
parent
44f98f9c8e
commit
e4b984d75e
@ -631,7 +631,8 @@ int board_init(void)
|
|||||||
int power_init_board(void)
|
int power_init_board(void)
|
||||||
{
|
{
|
||||||
struct pmic *p;
|
struct pmic *p;
|
||||||
unsigned int reg, ret;
|
unsigned int reg;
|
||||||
|
int ret;
|
||||||
|
|
||||||
p = pfuze_common_init(I2C_PMIC);
|
p = pfuze_common_init(I2C_PMIC);
|
||||||
if (!p)
|
if (!p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user