upstream: [media] mt9p031: Power down the sensor if no supported device has been...
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 18 Apr 2013 21:35:39 +0000 (18:35 -0300)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 02:47:54 +0000 (11:47 +0900)
commitab7d78a8ce3eac85a79407701dd18ab5fafce680
tree15786904674b1d6b39b37d453148cedcf81da627
parentd3476cb4b4385a0e69028b44d890c7c02ec8ce45
upstream: [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