From: "Luis R. Rodriguez" <mcg...@suse.com> We need to do this if we want to use the trigger at a later point. This change has introduces no functional changes.
Cc: Tetsuo Handa <penguin-ker...@i-love.sakura.ne.jp> Cc: Joseph Salisbury <joseph.salisb...@canonical.com> Cc: One Thousand Gnomes <gno...@lxorguk.ukuu.org.uk> Cc: Tim Gardner <tim.gard...@canonical.com> Cc: Pierre Fersing <pierre-fers...@pierref.org> Cc: Andrew Morton <a...@linux-foundation.org> Cc: Oleg Nesterov <o...@redhat.com> Cc: Benjamin Poirier <bpoir...@suse.de> Cc: Greg Kroah-Hartman <gre...@linuxfoundation.org> Cc: Nagalakshmi Nandigama <nagalakshmi.nandig...@avagotech.com> Cc: Praveen Krishnamoorthy <praveen.krishnamoor...@avagotech.com> Cc: Sreekanth Reddy <sreekanth.re...@avagotech.com> Cc: Abhijit Mahajan <abhijit.maha...@avagotech.com> Cc: Hariprasad S <haripra...@chelsio.com> Cc: Santosh Rastapur <sant...@chelsio.com> Cc: mpt-fusionlinux....@avagotech.com Cc: linux-s...@vger.kernel.org Cc: linux-kernel@vger.kernel.org Cc: net...@vger.kernel.org Signed-off-by: Luis R. Rodriguez <mcg...@suse.com> --- drivers/base/dd.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/drivers/base/dd.c b/drivers/base/dd.c index e4ffbcf..9947c2e 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -109,26 +109,6 @@ static void deferred_probe_work_func(struct work_struct *work) } static DECLARE_WORK(deferred_probe_work, deferred_probe_work_func); -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_tail(&dev->p->deferred_probe, &deferred_probe_pending_list); - } - mutex_unlock(&deferred_probe_mutex); -} - -void driver_deferred_probe_del(struct device *dev) -{ - mutex_lock(&deferred_probe_mutex); - if (!list_empty(&dev->p->deferred_probe)) { - dev_dbg(dev, "Removed from deferred list\n"); - list_del_init(&dev->p->deferred_probe); - } - mutex_unlock(&deferred_probe_mutex); -} - static bool driver_deferred_probe_enable = false; /** * driver_deferred_probe_trigger() - Kick off re-probing deferred devices @@ -171,6 +151,26 @@ static void driver_deferred_probe_trigger(void) queue_work(deferred_wq, &deferred_probe_work); } +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_tail(&dev->p->deferred_probe, &deferred_probe_pending_list); + } + mutex_unlock(&deferred_probe_mutex); +} + +void driver_deferred_probe_del(struct device *dev) +{ + mutex_lock(&deferred_probe_mutex); + if (!list_empty(&dev->p->deferred_probe)) { + dev_dbg(dev, "Removed from deferred list\n"); + list_del_init(&dev->p->deferred_probe); + } + mutex_unlock(&deferred_probe_mutex); +} + /** * deferred_probe_initcall() - Enable probing of deferred devices * -- 2.0.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/