]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: dc2114x: set the card number to start at zero
authorHanyuan Zhao <hanyuan-z@qq.com>
Fri, 9 Aug 2024 08:56:56 +0000 (16:56 +0800)
committerTom Rini <trini@konsulko.com>
Sun, 27 Oct 2024 16:15:29 +0000 (10:15 -0600)
Otherwise the number might get kind of weird.

Signed-off-by: Hanyuan Zhao <zhaohy22@mails.tsinghua.edu.cn>
drivers/net/dc2114x.c

index 7f0715429f37f784303769b3f5f632e828951b48..cf9f78163a7d18ce665e13f59f304ada12cbe1c9 100644 (file)
@@ -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++);