diff options
author | Ming Lei <ming.lei@canonical.com> | 2012-11-19 16:35:17 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-01-17 22:02:11 +0100 |
commit | 190888ac01d059e38ffe77a2291d44cafa9016fb (patch) | |
tree | 600544c901338319afc04edde2aba8813a5564db /fs/sysfs/file.c | |
parent | debugfs: remove redundant initialization of dentry (diff) | |
download | linux-190888ac01d059e38ffe77a2291d44cafa9016fb.tar.xz linux-190888ac01d059e38ffe77a2291d44cafa9016fb.zip |
driver core: fix possible missing of device probe
Inside bus_add_driver(), one device might be added(device_add()) into
the bus or probed which is triggered by deferred probe
just after completing of driver_attach() and before
'klist_add_tail(&priv->knode_bus, &bus->p->klist_drivers)',
so the device won't be probed by this driver.
This patch moves the below line
'klist_add_tail(&priv->knode_bus, &bus->p->klist_drivers)'
before driver_attach() inside bus_add_driver() to fix the
problem.
Signed-off-by: Ming Lei <ming.lei@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions