summaryrefslogtreecommitdiffstats
path: root/drivers/base/bus.c
diff options
context:
space:
mode:
authorSebastian Ott2012-07-02 19:08:15 +0200
committerGreg Kroah-Hartman2012-07-17 03:04:25 +0200
commit5a7689fd5b4f2094e7a32beae67f290f8619b042 (patch)
tree916abff6c0ff79ea98d212632e23167c0c94784c /drivers/base/bus.c
parentdriver core: fix shutdown races with probe/remove(v3) (diff)
downloadkernel-qcow2-linux-5a7689fd5b4f2094e7a32beae67f290f8619b042.tar.gz
kernel-qcow2-linux-5a7689fd5b4f2094e7a32beae67f290f8619b042.tar.xz
kernel-qcow2-linux-5a7689fd5b4f2094e7a32beae67f290f8619b042.zip
driver core: move uevent call to driver_register
Device driver attribute groups are created after userspace is notified via an add event. Fix this by moving the kobject_uevent call to driver_register after the attribute groups are added. Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base/bus.c')
-rw-r--r--drivers/base/bus.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/base/bus.c b/drivers/base/bus.c
index 2bcef657a60c..181ed2660b33 100644
--- a/drivers/base/bus.c
+++ b/drivers/base/bus.c
@@ -743,7 +743,6 @@ int bus_add_driver(struct device_driver *drv)
}
}
- kobject_uevent(&priv->kobj, KOBJ_ADD);
return 0;
out_unregister: