]> git.baikalelectronics.ru Git - kernel.git/commit
regulator: Support driver probe deferral
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 11 Mar 2012 13:07:56 +0000 (13:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 17:38:47 +0000 (10:38 -0700)
commit4a9a91504a9b9e8d3ec3643fdc7568bf3d4e0d08
treecde6a01f8a96ea3277d2bfb99f8610e63bb76021
parent49afd99c1d5b72c981e2a0face73d051f2d78afb
regulator: Support driver probe deferral

If we fail to locate a requested regulator return -EPROBE_DEFER. If drivers
pass this error code through to their caller (which they really should)
then this will ensure that the probe is retried later when further devices
become available.  In the unusual case where a driver doesn't want this
it can override the default behaviour.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/regulator/core.c