projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mx53loco: Remove unused get_board_rev function
[oweals/u-boot.git]
/
api
/
api.c
diff --git
a/api/api.c
b/api/api.c
index 8be0485bdcfd94f7919f85c57481a07c2de56c11..853f010fee93c6c321cf418f3920b9ec62b0724a 100644
(file)
--- a/
api/api.c
+++ b/
api/api.c
@@
-24,12
+24,10
@@
*/
#include <config.h>
*/
#include <config.h>
-
-#if defined(CONFIG_API)
-
#include <command.h>
#include <common.h>
#include <malloc.h>
#include <command.h>
#include <common.h>
#include <malloc.h>
+#include <environment.h>
#include <linux/types.h>
#include <api_public.h>
#include <linux/types.h>
#include <api_public.h>
@@
-38,10
+36,6
@@
#define DEBUG
#undef DEBUG
#define DEBUG
#undef DEBUG
-/* U-Boot routines needed */
-extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-extern uchar *env_get_addr(int);
-
/*****************************************************************************
*
* This is the API core.
/*****************************************************************************
*
* This is the API core.
@@
-534,7
+528,7
@@
static int API_env_enum(va_list ap)
for (i = 0; env_get_char(i) != '\0'; i = n + 1) {
for (n = i; env_get_char(n) != '\0'; ++n) {
for (i = 0; env_get_char(i) != '\0'; i = n + 1) {
for (n = i; env_get_char(n) != '\0'; ++n) {
- if (n >= C
F
G_ENV_SIZE) {
+ if (n >= C
ONFI
G_ENV_SIZE) {
/* XXX shouldn't we set *next = NULL?? */
return 0;
}
/* XXX shouldn't we set *next = NULL?? */
return 0;
}
@@
-665,5
+659,3
@@
void platform_set_mr(struct sys_info *si, unsigned long start, unsigned long siz
return;
}
}
return;
}
}
-
-#endif /* CONFIG_API */