mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
media: imx214: Fix the error handling in imx214_probe()
The driver should disable regulators when fails to probe. Link: https://lore.kernel.org/linux-media/20220510114852.1719018-1-zheyuma97@gmail.com Signed-off-by: Zheyu Ma <zheyuma97@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
c1115ddbda
commit
9bc92332cc
1 changed files with 1 additions and 0 deletions
|
@ -1114,6 +1114,7 @@ free_ctrl:
|
||||||
v4l2_ctrl_handler_free(&imx214->ctrls);
|
v4l2_ctrl_handler_free(&imx214->ctrls);
|
||||||
error_power_off:
|
error_power_off:
|
||||||
pm_runtime_disable(imx214->dev);
|
pm_runtime_disable(imx214->dev);
|
||||||
|
regulator_bulk_disable(IMX214_NUM_SUPPLIES, imx214->supplies);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue