diff options
author | David Wu <david.wu@rock-chips.com> | 2021-01-08 10:53:05 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2021-01-19 09:15:02 -0500 |
commit | 1231184caacad32c180d7e2338a645f7dfe9571a (patch) | |
tree | ecdb97433ba17bf82c463affdf47ab96100cf64b /net | |
parent | 6f1e668d964ebd3244a99288ea4bda7b7b8627c3 (diff) | |
download | u-boot-1231184caacad32c180d7e2338a645f7dfe9571a.tar.gz |
net: eth-uclass: Change uclass driver name to ethernetWIP/2021-01-19-networking-improvements
dev_read_alias_seq() used uc_drv->name compared to alias
stem string, Ethernet's alias stem uses "ethernet", which
does not match the eth-uclass driver name "eth", can not
get the correct index of ethernet alias namer. So it seems
change uclass driver name to match the alias stem is a more
reasonable way.
Signed-off-by: David Wu <david.wu@rock-chips.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'net')
-rw-r--r-- | net/eth-uclass.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/eth-uclass.c b/net/eth-uclass.c index 7c2454f5ae..8a22d8bf59 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -597,8 +597,8 @@ static int eth_pre_remove(struct udevice *dev) return 0; } -UCLASS_DRIVER(eth) = { - .name = "eth", +UCLASS_DRIVER(ethernet) = { + .name = "ethernet", .id = UCLASS_ETH, .post_bind = eth_post_bind, .pre_unbind = eth_pre_unbind, |