summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorHeinrich Schuchardt <[email protected]>2025-04-14 15:55:06 +0200
committerJerome Forissier <[email protected]>2025-04-23 10:02:49 +0200
commitfd7607be6268157b3a35f5d5e2b04938ce9f8701 (patch)
tree827d14afa0f42fd927ffd320753e595dcdf52b99 /common
parentf79db892fc9c53b909e3fd7c430a1fec3a885cfe (diff)
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 <[email protected]> Reviewed-by: Ilias Apalodimas <[email protected]>
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 65d74e3c092..bc6fd6448c2 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -509,7 +509,7 @@ static int initr_boot_led_on(void)
return 0;
}
-#if defined(CONFIG_CMD_NET)
+#if CONFIG_IS_ENABLED(NET) || CONFIG_IS_ENABLED(NET_LWIP)
static int initr_net(void)
{
puts("Net: ");
@@ -779,7 +779,7 @@ static void initcall_run_r(void)
#if CONFIG_IS_ENABLED(PCI_ENDPOINT)
INITCALL(pci_ep_init);
#endif
-#if CONFIG_IS_ENABLED(CMD_NET)
+#if CONFIG_IS_ENABLED(NET) || CONFIG_IS_ENABLED(NET_LWIP)
WATCHDOG_RESET();
INITCALL(initr_net);
#endif