diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-04-19 00:57:37 -0400 |
---|---|---|
committer | Greg KH <greg@press.kroah.org> | 2005-04-19 00:57:37 -0400 |
commit | f0e035f4b6940aae6836500b642029c289ed4535 (patch) | |
tree | e19b4a0d1baf0e856499387aeb2794870397f9fa | |
parent | 089d42b013675b028a499c61bac59954067dc668 (diff) |
[PATCH] kobject/hotplug split - net bridge
kobject_add() and kobject_del() don't emit hotplug events anymore.
We need to do it ourselves now.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r-- | net/bridge/br_sysfs_if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_sysfs_if.c b/net/bridge/br_sysfs_if.c index 567249bf9331..f6a19d53eaeb 100644 --- a/net/bridge/br_sysfs_if.c +++ b/net/bridge/br_sysfs_if.c | |||
@@ -248,6 +248,7 @@ int br_sysfs_addif(struct net_bridge_port *p) | |||
248 | if (err) | 248 | if (err) |
249 | goto out2; | 249 | goto out2; |
250 | 250 | ||
251 | kobject_hotplug(&p->kobj, KOBJ_ADD); | ||
251 | return 0; | 252 | return 0; |
252 | out2: | 253 | out2: |
253 | kobject_del(&p->kobj); | 254 | kobject_del(&p->kobj); |
@@ -259,6 +260,7 @@ void br_sysfs_removeif(struct net_bridge_port *p) | |||
259 | { | 260 | { |
260 | pr_debug("br_sysfs_removeif\n"); | 261 | pr_debug("br_sysfs_removeif\n"); |
261 | sysfs_remove_link(&p->br->ifobj, p->dev->name); | 262 | sysfs_remove_link(&p->br->ifobj, p->dev->name); |
263 | kobject_hotplug(&p->kobj, KOBJ_REMOVE); | ||
262 | kobject_del(&p->kobj); | 264 | kobject_del(&p->kobj); |
263 | } | 265 | } |
264 | 266 | ||