Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 221a8248 authored by Jonathan Corbet's avatar Jonathan Corbet Committed by Mauro Carvalho Chehab
Browse files

[media] marvell-cam: power down mmp camera on registration failure



If registration does not work, we don't want to leave the sensor powered on.

Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c9fb8bfa
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -267,8 +267,8 @@ static int mmpcam_probe(struct platform_device *pdev)

out_unregister:
	mccic_shutdown(mcam);
	mmpcam_power_down(mcam);
out_gpio2:
	mmpcam_power_down(mcam);
	gpio_free(pdata->sensor_reset_gpio);
out_gpio:
	gpio_free(pdata->sensor_power_gpio);