projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net: struct device - replace bus_id with dev_name(), dev_set_name()
[cascardo/linux.git]
/
drivers
/
net
/
pasemi_mac.c
diff --git
a/drivers/net/pasemi_mac.c
b/drivers/net/pasemi_mac.c
index
b027005
..
fcbf6cc
100644
(file)
--- a/
drivers/net/pasemi_mac.c
+++ b/
drivers/net/pasemi_mac.c
@@
-1105,7
+1105,8
@@
static int pasemi_mac_phy_init(struct net_device *dev)
goto err;
phy_id = *prop;
- snprintf(mac->phy_id, BUS_ID_SIZE, "%x:%02x", (int)r.start, phy_id);
+ snprintf(mac->phy_id, sizeof(mac->phy_id), "%x:%02x",
+ (int)r.start, phy_id);
of_node_put(phy_dn);