aboutsummaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@aristanetworks.com>2009-10-29 10:18:21 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-30 15:41:18 -0400
commit0c509a6c9393b27a8c5a01acd4a72616206cfc24 (patch)
tree4e6aa609537144de3d09e461528d22e7f448ef55 /net/core
parent0bd8d53656da72bc065766b5f2a05ca738020b8a (diff)
net: Allow devices to specify a device specific sysfs group.
This isn't beautifully abstracted, but it is simple, simplifies uses and so far is only needed for the bonding driver. Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/net-sysfs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 89de182353b0..157645c0da73 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -544,8 +544,11 @@ int netdev_register_kobject(struct net_device *net)
544 dev_set_name(dev, "%s", net->name); 544 dev_set_name(dev, "%s", net->name);
545 545
546#ifdef CONFIG_SYSFS 546#ifdef CONFIG_SYSFS
547 *groups++ = &netstat_group; 547 /* Allow for a device specific group */
548 if (*groups)
549 groups++;
548 550
551 *groups++ = &netstat_group;
549#ifdef CONFIG_WIRELESS_EXT_SYSFS 552#ifdef CONFIG_WIRELESS_EXT_SYSFS
550 if (net->ieee80211_ptr) 553 if (net->ieee80211_ptr)
551 *groups++ = &wireless_group; 554 *groups++ = &wireless_group;