* [PATCH 6/6] kobject/hotplug split - net bridge
@ 2005-03-18 4:00 Kay Sievers
0 siblings, 0 replies; only message in thread
From: Kay Sievers @ 2005-03-18 4:00 UTC (permalink / raw)
To: linux-kernel; +Cc: Greg KH
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>
===== net/bridge/br_sysfs_if.c 1.2 vs edited =====
--- 1.2/net/bridge/br_sysfs_if.c 2004-06-18 22:15:34 +02:00
+++ edited/net/bridge/br_sysfs_if.c 2005-03-18 02:17:18 +01:00
@@ -248,6 +248,7 @@ int br_sysfs_addif(struct net_bridge_por
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
{
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);
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-03-18 4:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-18 4:00 [PATCH 6/6] kobject/hotplug split - net bridge Kay Sievers
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox