mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 22:14:03 +02:00
media: stm32: dcmipp: Propagate runtime resume errors
dcmipp_runtime_resume() can fail while preparing the device clocks, but dcmipp_resume() currently ignores the result of pm_runtime_force_resume() and always returns success. Return the pm_runtime_force_resume() result so system resume does not hide a failed runtime resume. Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
da929031d6
commit
0a617f11c8
|
|
@ -649,9 +649,7 @@ static int dcmipp_resume(struct device *dev)
|
|||
pinctrl_pm_select_default_state(dev);
|
||||
|
||||
/* clock enable */
|
||||
pm_runtime_force_resume(dev);
|
||||
|
||||
return 0;
|
||||
return pm_runtime_force_resume(dev);
|
||||
}
|
||||
|
||||
static const struct dev_pm_ops dcmipp_pm_ops = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user