projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a35aa5a
)
net: dc2114x: set the card number to start at zero
author
Hanyuan Zhao
<hanyuan-z@qq.com>
Fri, 9 Aug 2024 08:56:56 +0000
(16:56 +0800)
committer
Tom 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
patch
|
blob
|
history
diff --git
a/drivers/net/dc2114x.c
b/drivers/net/dc2114x.c
index 7f0715429f37f784303769b3f5f632e828951b48..cf9f78163a7d18ce665e13f59f304ada12cbe1c9 100644
(file)
--- 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++);