mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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 <[email protected]> Acked-by: Shawn Guo <[email protected]> Reviewed-by: Stephen Warren <[email protected]>
This commit is contained in:
parent
38dbfb59d1
commit
3d10302048
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue