[U-Boot] [PATCH v2 3/5] net: avoid eth_unregister() call when function is unavailable

Joe Hershberger joe.hershberger at gmail.com
Wed Aug 26 18:18:03 CEST 2015


On Wed, Aug 26, 2015 at 7:35 AM, Bernhard Nortmann
<bernhard.nortmann at web.de> 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 <bernhard.nortmann at web.de>
> Reviewed-by: Simon Glass <sjg at chromium.org>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list