driver core: fixup reversed deferred probe order
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 30 May 2012 01:46:06 +0000 (18:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Jun 2012 20:42:39 +0000 (13:42 -0700)
commit1d29cfa57471a5e4b8a7c2a7433eeba170d3ad92
tree1e4f7462b791af395f58e8590619b196f01de807
parent6ebb017de9d59a18c3ff9648270e8f6abaa93438
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>
drivers/base/dd.c