diff options
author | Tom Herbert <therbert@google.com> | 2010-03-22 18:06:47 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-03-22 18:06:47 -0700 |
commit | e880eb6c5c9d98e389ffc0d8947f75d70785361a (patch) | |
tree | 6a0ee22c448e9d7a5b44a7869efa339fa0bb7164 /net/core | |
parent | 70f60a220b33832ae4e2622b913f138892b6fe7b (diff) | |
download | kernel_samsung_smdk4412-e880eb6c5c9d98e389ffc0d8947f75d70785361a.zip kernel_samsung_smdk4412-e880eb6c5c9d98e389ffc0d8947f75d70785361a.tar.gz kernel_samsung_smdk4412-e880eb6c5c9d98e389ffc0d8947f75d70785361a.tar.bz2 |
rps: Fix build with CONFIG_SYSFS enabled
Fix build with CONFIG_SYSFS not enabled.
Signed-off-by: Tom Herbert <therbert@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/net-sysfs.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c index 7a46343..f6b6bfe 100644 --- a/net/core/net-sysfs.c +++ b/net/core/net-sysfs.c @@ -739,7 +739,9 @@ void netdev_unregister_kobject(struct net_device * net) if (!net_eq(dev_net(net), &init_net)) return; +#ifdef CONFIG_SYSFS rx_queue_remove_kobjects(net); +#endif device_del(dev); } @@ -780,11 +782,13 @@ int netdev_register_kobject(struct net_device *net) if (error) return error; +#ifdef CONFIG_SYSFS error = rx_queue_register_kobjects(net); if (error) { device_del(dev); return error; } +#endif return error; } |