Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Zheyu Ma and committed by
Mauro Carvalho Chehab
9bc92332 c1115ddb

+1
+1
drivers/media/i2c/imx214.c
··· 1114 1114 v4l2_ctrl_handler_free(&imx214->ctrls); 1115 1115 error_power_off: 1116 1116 pm_runtime_disable(imx214->dev); 1117 + regulator_bulk_disable(IMX214_NUM_SUPPLIES, imx214->supplies); 1117 1118 1118 1119 return ret; 1119 1120 }