aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Herbert <therbert@google.com>2010-03-22 21:06:47 -0400
committerDavid S. Miller <davem@davemloft.net>2010-03-22 21:06:47 -0400
commite880eb6c5c9d98e389ffc0d8947f75d70785361a (patch)
tree6a0ee22c448e9d7a5b44a7869efa339fa0bb7164
parent70f60a220b33832ae4e2622b913f138892b6fe7b (diff)
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>
-rw-r--r--net/core/net-sysfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index 7a46343d5ae3..f6b6bfee72ae 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)
739 if (!net_eq(dev_net(net), &init_net)) 739 if (!net_eq(dev_net(net), &init_net))
740 return; 740 return;
741 741
742#ifdef CONFIG_SYSFS
742 rx_queue_remove_kobjects(net); 743 rx_queue_remove_kobjects(net);
744#endif
743 745
744 device_del(dev); 746 device_del(dev);
745} 747}
@@ -780,11 +782,13 @@ int netdev_register_kobject(struct net_device *net)
780 if (error) 782 if (error)
781 return error; 783 return error;
782 784
785#ifdef CONFIG_SYSFS
783 error = rx_queue_register_kobjects(net); 786 error = rx_queue_register_kobjects(net);
784 if (error) { 787 if (error) {
785 device_del(dev); 788 device_del(dev);
786 return error; 789 return error;
787 } 790 }
791#endif
788 792
789 return error; 793 return error;
790} 794}