]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mt9p031: Power down the sensor if no supported device has been detected
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 18 Apr 2013 21:35:39 +0000 (18:35 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 21 May 2013 10:48:58 +0000 (07:48 -0300)
commit3a6afd0fd5ce4f5ab3a287568bbfd4124a77aaa0
tree33a36a4222528de0bf04d86143b3bd1577fea206
parent205c6f401f5e8f0d7af560a53ee87c95928280e1
[media] mt9p031: Power down the sensor if no supported device has been detected

The mt9p031 driver first accesses the I2C device in its .registered()
method. While doing that it first powers the device up, but if probing
fails, it doesn't power the chip back down. This patch fixes that bug.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/mt9p031.c