diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-10 16:55:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-10 16:55:14 -0500 |
commit | fb28ad35906af2f042c94e2f9c0f898ef9acfa37 (patch) | |
tree | ee3d535ab38d680b424a857406789f8c28bf5266 /net/core | |
parent | 23779897546c1effb546ff89b89803d9d955d517 (diff) |
net: struct device - replace bus_id with dev_name(), dev_set_name()
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/net-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 85cb8bdcfb8f..146dcfeb060e 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c | |||
@@ -494,7 +494,7 @@ int netdev_register_kobject(struct net_device *net) | |||
494 | dev->groups = groups; | 494 | dev->groups = groups; |
495 | 495 | ||
496 | BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ); | 496 | BUILD_BUG_ON(BUS_ID_SIZE < IFNAMSIZ); |
497 | strlcpy(dev->bus_id, net->name, BUS_ID_SIZE); | 497 | dev_set_name(dev, net->name); |
498 | 498 | ||
499 | #ifdef CONFIG_SYSFS | 499 | #ifdef CONFIG_SYSFS |
500 | *groups++ = &netstat_group; | 500 | *groups++ = &netstat_group; |