UPSTREAM: net: eth-uclass: Change uclass driver name to ethernet
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. (cherry picked from commit 1231184caacad32c180d7e2338a645f7dfe9571a) Signed-off-by: David Wu <david.wu@rock-chips.com> Reviewed-by: Simon Glass <sjg@chromium.org> Change-Id: I2ebbf20ae2a127456f92dc79461610b7b339c8f3 Signed-off-by: David Wu <david.wu@rock-chips.com>
This commit is contained in:
parent
a3341e9017
commit
548715c7d5
|
|
@ -546,8 +546,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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue