[PATCH -next] bridge: fix build for CONFIG_SYSFS disabled

Randy Dunlap
2010-05-17T16:19:45Z

From: Randy Dunlap <randy.dunlap@oracle.com>

Fix build when CONFIG_SYSFS is not enabled:

net/bridge/br_if.c:136: error: 'struct net_bridge_port' has no member named 'sysfs_name'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
net/bridge/br_if.c | 2 ++
1 file changed, 2 insertions(+)

--- linux-next-20100517.orig/net/bridge/br_if.c
+++ linux-next-20100517/net/bridge/br_if.c
@@ -133,7 +133,9 @@ static void del_nbp(struct net_bridge_po
struct net_bridge *br = p->br;
struct net_device *dev = p->dev;

+#ifdef CONFIG_SYSFS
sysfs_remove_link(br->ifobj, p->sysfs_name);
+#endif

dev_set_promiscuity(dev, -1);