mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-12 16:54:42 +08:00
[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: Jonathan Corbet <corbet@lwn.net> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
c9fb8bfaf1
commit
221a8248b9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user