VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / net / bridge / br_sysfs_br.c
index 61f00fa..98cf53c 100644 (file)
@@ -300,25 +300,6 @@ static struct bin_attribute bridge_forward = {
        .read = brforward_read,
 };
 
-
-/*
- * This is a dummy kset so bridge objects don't cause
- * hotplug events 
- */
-struct subsystem bridge_subsys = { 
-       .kset = { .hotplug_ops = NULL },
-};
-
-void br_sysfs_init(void)
-{
-       subsystem_register(&bridge_subsys);
-}
-
-void br_sysfs_fini(void)
-{
-       subsystem_unregister(&bridge_subsys);
-}
-
 /*
  * Add entries in sysfs onto the existing network class device
  * for the bridge.
@@ -353,7 +334,7 @@ int br_sysfs_addbr(struct net_device *dev)
        
        kobject_set_name(&br->ifobj, SYSFS_BRIDGE_PORT_SUBDIR);
        br->ifobj.ktype = NULL;
-       br->ifobj.kset = &bridge_subsys.kset;
+       br->ifobj.kset = NULL;
        br->ifobj.parent = brobj;
 
        err = kobject_register(&br->ifobj);