From: Guennadi Liakhovetski Date: Thu, 18 Apr 2013 21:35:39 +0000 (-0300) Subject: [media] mt9p031: Power down the sensor if no supported device has been detected X-Git-Tag: v3.11-rc1~17^2~379 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bbcc9fa0afe4f8a36e8777e14f7b016090605306;p=pandora-kernel.git [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 Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed