summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/bootm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 667c93471b..c0d0d09411 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -474,7 +474,9 @@ ulong bootm_disable_interrupts(void)
#ifdef CONFIG_NETCONSOLE
/* Stop the ethernet stack if NetConsole could have left it up */
eth_halt();
+# ifndef CONFIG_DM_ETH
eth_unregister(eth_get_dev());
+# endif
#endif
#if defined(CONFIG_CMD_USB)
OpenPOWER on IntegriCloud