From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Wu Date: Thu, 7 Jan 2021 11:55:45 +0800 Subject: [PATCH] net: eth-uclass: Change uclass driver name to ethernet Message-ID: <20210107035545.415-1-david.wu@rock-chips.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- net/eth-uclass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/eth-uclass.c b/net/eth-uclass.c index e14695c0f1..7dd962db64 100644 --- a/net/eth-uclass.c +++ b/net/eth-uclass.c @@ -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, -- 2.19.1