diff options
author | Hanyuan Zhao <hanyuan-z@qq.com> | 2024-08-09 16:56:56 +0800 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-10-27 10:15:29 -0600 |
commit | 26d88de9e5be0ceffe8ac035c5089226ce8e0cb2 (patch) | |
tree | 6ed0ee6643cc676d7de0e9981da0bc4f5d2edbd6 | |
parent | a35aa5a0c1159a2c19141272375123a954a7f287 (diff) |
net: dc2114x: set the card number to start at zero
Otherwise the number might get kind of weird.
Signed-off-by: Hanyuan Zhao <zhaohy22@mails.tsinghua.edu.cn>
-rw-r--r-- | drivers/net/dc2114x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dc2114x.c b/drivers/net/dc2114x.c index 7f0715429f3..cf9f78163a7 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++); |