projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44f98f9
)
mx6sabresd: Use 'int' for return values
author
Fabio Estevam
<fabio.estevam@freescale.com>
Tue, 21 Jul 2015 23:02:49 +0000
(20:02 -0300)
committer
Stefano 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
patch
|
blob
|
history
diff --git
a/board/freescale/mx6sabresd/mx6sabresd.c
b/board/freescale/mx6sabresd/mx6sabresd.c
index 23f8f6b76fdab9f55fef17e23b2aca825e3f025e..fa800f4b22bfd2c07a90482cb5f9102d43370500 100644
(file)
--- 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)