diff options
author | Michael Walle <michael@walle.cc> | 2019-10-22 01:03:10 +0200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2019-12-09 09:47:42 -0600 |
commit | 19820db0bd97fd4e202019594abe9a9604aa5534 (patch) | |
tree | 9fd6f74176d75e2f643677360e94197d2d00fbfa /scripts/dtc/data.c | |
parent | bf58916373f0a94aaf0aca5ee67bb18d5928fa0e (diff) |
net: eth-uclass: ignore unavailable devices
device_probe() may fail in which case the seq_id will be -1. Don't
display these devices during startup. While this is only a cosmetic
change, the return value of eth_initialize() will also change to the
actual number of available devices. The return value is only used in
spl_net to decide whether there are any devices to boot from. So
returning only available devices is also more correct in that case.
Signed-off-by: Michael Walle <michael@walle.cc>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'scripts/dtc/data.c')
0 files changed, 0 insertions, 0 deletions