summaryrefslogtreecommitdiff
path: root/board/freescale/mx6sabresd
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-07-21 20:02:49 -0300
committerStefano Babic <sbabic@denx.de>2015-07-26 12:12:04 +0200
commite4b984d75eb7589e91cbb8b939e0fc1418d68446 (patch)
tree86a018c9f6cd9129b6fe811a5f1a048615947922 /board/freescale/mx6sabresd
parent44f98f9c8e178942ad51b77b6d2a66820fa9d3cc (diff)
downloadu-boot-imx-e4b984d75eb7589e91cbb8b939e0fc1418d68446.zip
u-boot-imx-e4b984d75eb7589e91cbb8b939e0fc1418d68446.tar.gz
u-boot-imx-e4b984d75eb7589e91cbb8b939e0fc1418d68446.tar.bz2
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>
Diffstat (limited to 'board/freescale/mx6sabresd')
-rw-r--r--board/freescale/mx6sabresd/mx6sabresd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/board/freescale/mx6sabresd/mx6sabresd.c b/board/freescale/mx6sabresd/mx6sabresd.c
index 23f8f6b..fa800f4 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)