summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-05-30 03:46:06 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-13 22:42:39 +0200
commit1d29cfa57471a5e4b8a7c2a7433eeba170d3ad92 (patch)
tree1e4f7462b791af395f58e8590619b196f01de807 /drivers/base
parentprintk: Fix alignment of buf causing crash on ARM EABI (diff)
downloadlinux-1d29cfa57471a5e4b8a7c2a7433eeba170d3ad92.tar.xz
linux-1d29cfa57471a5e4b8a7c2a7433eeba170d3ad92.zip
driver core: fixup reversed deferred probe order
If driver requests probe deferral, it will be added to deferred_probe_pending_list by driver_deferred_probe_add(), but, it used list_add(). Because of that, deferred probe will be run as reversed order. This patch uses list_add_tail(), and solved this issue. Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/dd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c
index 1b1cbb571d38..dcb8a6e48692 100644
--- a/drivers/base/dd.c
+++ b/drivers/base/dd.c
@@ -100,7 +100,7 @@ static void driver_deferred_probe_add(struct device *dev)
mutex_lock(&deferred_probe_mutex);
if (list_empty(&dev->p->deferred_probe)) {
dev_dbg(dev, "Added to deferred list\n");
- list_add(&dev->p->deferred_probe, &deferred_probe_pending_list);
+ list_add_tail(&dev->p->deferred_probe, &deferred_probe_pending_list);
}
mutex_unlock(&deferred_probe_mutex);
}