Skip to content

Commit

Permalink
reset: allow drivers to request probe deferral
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Philipp Zabel committed Feb 3, 2014
1 parent 38dbfb5 commit 3d10302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/reset/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3d10302

Please sign in to comment.