summaryrefslogtreecommitdiff
path: root/lib_sh/board.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_sh/board.c')
-rw-r--r--lib_sh/board.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib_sh/board.c b/lib_sh/board.c
index 807415c548..eb81bd97ec 100644
--- a/lib_sh/board.c
+++ b/lib_sh/board.c
@@ -112,6 +112,7 @@ static int sh_mem_env_init(void)
return 0;
}
+#if defined(CONFIG_CMD_NET)
static int sh_net_init(void)
{
DECLARE_GLOBAL_DATA_PTR;
@@ -127,6 +128,7 @@ static int sh_net_init(void)
return 0;
}
+#endif
typedef int (init_fnc_t) (void);
@@ -170,8 +172,8 @@ void sh_generic_init (void)
bd_t *bd;
init_fnc_t **init_fnc_ptr;
- char *s;
int i;
+ char *s;
memset (gd, 0, CFG_GBL_DATA_SIZE);