diff options
author | Bernhard Nortmann <bernhard.nortmann@web.de> | 2015-09-14 15:29:45 +0200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2015-09-29 21:54:45 -0500 |
commit | 4917c061a206b1c220307599bbda84b9bc4d44f2 (patch) | |
tree | 0abd8757bb5a848a292df635fff6bfe7dc518431 /board/shmin | |
parent | c163e4367908ea625ca962ca6312fc88790b5242 (diff) | |
download | talos-obmc-uboot-4917c061a206b1c220307599bbda84b9bc4d44f2.tar.gz talos-obmc-uboot-4917c061a206b1c220307599bbda84b9bc4d44f2.zip |
net: avoid eth_unregister() call when function is unavailable
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@web.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'board/shmin')
0 files changed, 0 insertions, 0 deletions