[U-Boot] [RFC PATCH 3/3] avoid eth_unregister() call when function is unavailable

Simon Glass sjg at chromium.org
Sun Aug 23 23:21:51 CEST 2015


On 21 August 2015 at 16:30, 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>
>
> ---
>
>  common/bootm.c | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>

(nit: should have 'net:' prefix)


More information about the U-Boot mailing list