]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mmp-camera: Don't power up the sensor on resume
authorJonathan Corbet <corbet@lwn.net>
Fri, 16 Mar 2012 22:14:55 +0000 (19:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 20 Mar 2012 01:16:46 +0000 (22:16 -0300)
commite4ca4f2c118873a35e733e2c1804de1d50e5521d
tree237223aae447ea55b49042d4ded65a0c56b60bc8
parent535ef47e42fd0a59e5023e7cf71d2d9e31616439
[media] mmp-camera: Don't power up the sensor on resume

We still need to power up the controller to avoid unsightly self-immolation
should something try to access its registers, but the sensor can stay
powered down unless the camera was actually operating at suspend time.
This gets rid of the camera LED flash on resume, fixing OLPC bug #11644.

Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/marvell-ccic/mmp-driver.c