Commit 9bc92332 authored by Zheyu Ma's avatar Zheyu Ma Committed by Mauro Carvalho Chehab

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.comSigned-off-by: default avatarZheyu Ma <zheyuma97@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent c1115ddb
......@@ -1114,6 +1114,7 @@ static int imx214_probe(struct i2c_client *client)
v4l2_ctrl_handler_free(&imx214->ctrls);
error_power_off:
pm_runtime_disable(imx214->dev);
regulator_bulk_disable(IMX214_NUM_SUPPLIES, imx214->supplies);
return ret;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment