[PATCH] kobject/hotplug split - net bridge
[linux-3.10.git] / net / bridge / br_sysfs_if.c
index 567249bf93310ec35525ad8bf69cfbbff5ab32e1..f6a19d53eaebdf13d4c8eeeb40d78470993d1af8 100644 (file)
@@ -248,6 +248,7 @@ int br_sysfs_addif(struct net_bridge_port *p)
        if (err)
                goto out2;
 
+       kobject_hotplug(&p->kobj, KOBJ_ADD);
        return 0;
  out2:
        kobject_del(&p->kobj);
@@ -259,6 +260,7 @@ void br_sysfs_removeif(struct net_bridge_port *p)
 {
        pr_debug("br_sysfs_removeif\n");
        sysfs_remove_link(&p->br->ifobj, p->dev->name);
+       kobject_hotplug(&p->kobj, KOBJ_REMOVE);
        kobject_del(&p->kobj);
 }