From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joe Hershberger Date: Wed, 30 Sep 2015 12:22:55 -0500 Subject: [U-Boot] [RESEND PATCH v3 3/5] net: avoid eth_unregister() call when function is unavailable In-Reply-To: <1442237387-29474-4-git-send-email-bernhard.nortmann@web.de> References: <1442237387-29474-1-git-send-email-bernhard.nortmann@web.de> <1442237387-29474-4-git-send-email-bernhard.nortmann@web.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Mon, Sep 14, 2015 at 8:29 AM, Bernhard Nortmann wrote: > CONFIG_NETCONSOLE causes common/bootm.c to call eth_unregister() > for network device shutdown. However, with CONFIG_DM_ETH this > function is no longer defined. > > This is a workaround to avoid the call in that case, and solely > rely on eth_halt(). In case this is insufficient, a proper way > to unregister / remove network devices needs to be implemented. > > Signed-off-by: Bernhard Nortmann > Reviewed-by: Simon Glass > Acked-by: Joe Hershberger Applied to u-boot-net/master, thanks! -Joe