From: Hanyuan Zhao Date: Fri, 9 Aug 2024 08:56:56 +0000 (+0800) Subject: net: dc2114x: set the card number to start at zero X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=26d88de9e5be0ceffe8ac035c5089226ce8e0cb2;p=u-boot.git net: dc2114x: set the card number to start at zero Otherwise the number might get kind of weird. Signed-off-by: Hanyuan Zhao --- diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index 7f0715429f..cf9f78163a 100644 --- a/drivers/net/dc2114x.c +++ b/drivers/net/dc2114x.c @@ -561,7 +561,7 @@ static int dc2114x_read_rom_hwaddr(struct udevice *dev) static int dc2114x_bind(struct udevice *dev) { - static int card_number; + static int card_number = 0; char name[16]; sprintf(name, "dc2114x#%u", card_number++);