Skip to content

Commit

Permalink
net: eth-uclass: Change uclass driver name to ethernet
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
SuperDavidWu authored and trini committed Jan 19, 2021
1 parent 6f1e668 commit 1231184
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/eth-uclass.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1231184

Please sign in to comment.