net: make initr_net() invocation command line agnostic
initr_net() initalizes the network devices by calling eth_initalize().
There is no good reason to disable this if no command line interface is
present.
Let initr_net() depend on CONFIG_NET || CONFIG_NET_LWIP.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
(cherry picked from commit fd7607be62)
This commit is contained in:
committed by
Simon Glass
parent
7df79508d7
commit
5bd878465b
@@ -458,7 +458,7 @@ static int initr_malloc_bootparams(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_CMD_NET)
|
||||
#if CONFIG_IS_ENABLED(NET) || CONFIG_IS_ENABLED(NET_LWIP)
|
||||
static int initr_net(void)
|
||||
{
|
||||
puts("Net: ");
|
||||
@@ -723,7 +723,7 @@ static init_fnc_t init_sequence_r[] = {
|
||||
#ifdef CONFIG_PCI_ENDPOINT
|
||||
pci_ep_init,
|
||||
#endif
|
||||
#if defined(CONFIG_CMD_NET)
|
||||
#if CONFIG_IS_ENABLED(NET) || CONFIG_IS_ENABLED(NET_LWIP)
|
||||
INIT_FUNC_WATCHDOG_RESET
|
||||
initr_net,
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user