diff options
author | Jonathan Corbet <corbet@lwn.net> | 2011-07-08 22:50:48 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-07-27 22:55:54 +0200 |
commit | 221a8248b9ca62a7304115782dca46a3f014f454 (patch) | |
tree | ea8f502b56386ea083cd4dbe636c410437d0c7cc /drivers/media/video/marvell-ccic | |
parent | [media] marvell-cam: remove {min,max}_buffers parameters (diff) | |
download | linux-221a8248b9ca62a7304115782dca46a3f014f454.tar.xz linux-221a8248b9ca62a7304115782dca46a3f014f454.zip |
[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>
Diffstat (limited to 'drivers/media/video/marvell-ccic')
-rw-r--r-- | drivers/media/video/marvell-ccic/mmp-driver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/marvell-ccic/mmp-driver.c b/drivers/media/video/marvell-ccic/mmp-driver.c index 841591556994..d6b764541375 100644 --- a/drivers/media/video/marvell-ccic/mmp-driver.c +++ b/drivers/media/video/marvell-ccic/mmp-driver.c @@ -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); |