projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MX5: mx53loco: make use of GPIO framework
[oweals/u-boot.git]
/
board
/
LEOX
/
elpt860
/
elpt860.c
diff --git
a/board/LEOX/elpt860/elpt860.c
b/board/LEOX/elpt860/elpt860.c
index 905df92b1dd974db425ec365f85b99be34b7f590..03868cdd7394998fd9129bfbe5374b72595ee8ff 100644
(file)
--- a/
board/LEOX/elpt860/elpt860.c
+++ b/
board/LEOX/elpt860/elpt860.c
@@
-169,9
+169,10
@@
int board_early_init_f (void)
int checkboard (void)
{
int checkboard (void)
{
- char *s = getenv ("serial#");
+ char buf[64];
+ int i = getenv_f("serial#", buf, sizeof(buf));
- if (
!s || strncmp (s
, "ELPT860", 7))
+ if (
(i < 0) || strncmp(buf
, "ELPT860", 7))
printf ("### No HW ID - assuming ELPT860\n");
return (0); /* success */
printf ("### No HW ID - assuming ELPT860\n");
return (0); /* success */