[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)
commit4a0abfaa9662365303df2accf16383a2edb49a7b
tree237223aae447ea55b49042d4ded65a0c56b60bc8
parentf2354dd180755e25369167eda5de2c226d59fb1d
[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