net: eth-uclass: Change uclass driver name to ethernet
PATCH 1/1 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.
--- net/eth-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/eth-uclass.c +1 -1
@@ -594,7 +594,7 @@ static int eth_pre_remove(struct udevice *dev) }UCLASS_DRIVER (eth) = { - .name ="eth" , + .name ="ethernet" , .id =UCLASS_ETH , .post_bind = eth_post_bind, .pre_unbind = eth_pre_unbind,
Signature · 1 line
2.19.1
PATCH 1/1 net: eth-uclass: Change uclass driver name to ethernet
Hi David,
Quoted 18 lines · David Wu
dev_read_alias_seq()useduc_drv->namecompared 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 <[email protected]>--- net/eth-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/eth-uclass.c +0
-0
net/eth-uclass.c static int eth_pre_remove(struct udevice *dev) · line 596
Quoted 3 lines
net/eth-uclass.c +0
-0@@ -594,7 +594,7 @@ static int eth_pre_remove(struct udevice *dev) }UCLASS_DRIVER (eth) = {
Should change this one too ^
Quoted 9 lines
net/eth-uclass.c +1
-2- .name = "eth", + .name = "ethernet", .id = UCLASS_ETH, .post_bind = eth_post_bind, .pre_unbind = eth_pre_unbind, --2.19.1
Regards,
Simon