diff options
author | Philipp Zabel <p.zabel@pengutronix.de> | 2013-07-18 13:55:22 +0200 |
---|---|---|
committer | Philipp Zabel <p.zabel@pengutronix.de> | 2014-02-03 10:19:39 +0100 |
commit | 3d10302048ab672d1e8993b8a5b50d9e35881853 (patch) | |
tree | 8bed8caabb2001e8dbf0daab85b24fe31b9442de /drivers/reset | |
parent | 38dbfb59d1175ef458d006556061adeaa8751b72 (diff) | |
download | linux-3d10302048ab672d1e8993b8a5b50d9e35881853.tar.bz2 |
reset: allow drivers to request probe deferral
If the requested reset controller is not yet available, have reset_control_get
and device_reset return -EPROBE_DEFER so the driver can decide to request
probe deferral.
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Shawn Guo <shawn.guo@linaro.org>
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'drivers/reset')
-rw-r--r-- | drivers/reset/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/reset/core.c b/drivers/reset/core.c index d1b6089a0ef8..b3d99a1477b5 100644 --- a/drivers/reset/core.c +++ b/drivers/reset/core.c @@ -167,7 +167,7 @@ struct reset_control *reset_control_get(struct device *dev, const char *id) if (!rcdev) { mutex_unlock(&reset_controller_list_mutex); - return ERR_PTR(-ENODEV); + return ERR_PTR(-EPROBE_DEFER); } rstc_id = rcdev->of_xlate(rcdev, &args); |