summaryrefslogtreecommitdiff
path: root/board/freescale/mx6sx_17x17_arm2
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-11-24 17:28:52 +0800
committerguoyin.chen <guoyin.chen@freescale.com>2016-03-04 15:35:49 +0800
commit0f64ca58972aa4e4c1321869ece526da6e13d48e (patch)
treecf19187944b16be9b5d79e44b419a52c5679f629 /board/freescale/mx6sx_17x17_arm2
parentf96f3aa4e3d276ad3d7a0dc12356b680329db5ec (diff)
downloadu-boot-imx-0f64ca58972aa4e4c1321869ece526da6e13d48e.zip
u-boot-imx-0f64ca58972aa4e4c1321869ece526da6e13d48e.tar.gz
u-boot-imx-0f64ca58972aa4e4c1321869ece526da6e13d48e.tar.bz2
MLK-11892 imx: boards: fix variable type
ret should not use unsigned integer. Should use signed interger to compare against 0. Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'board/freescale/mx6sx_17x17_arm2')
-rw-r--r--board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c b/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c
index 5e94f72..ea022f5 100644
--- a/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c
+++ b/board/freescale/mx6sx_17x17_arm2/mx6sx_17x17_arm2.c
@@ -111,7 +111,9 @@ struct i2c_pads_info i2c_pad_info2 = {
static struct pmic *pfuze;
int power_init_board(void)
{
- unsigned int reg, ret;
+ unsigned int reg;
+ int ret;
+
pfuze = pfuze_common_init(I2C_PMIC);
if (!pfuze)
return -ENODEV;