[media] v4l: mt9t001: fix clean up in case of power-on failures
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Mon, 14 Dec 2015 09:58:29 +0000 (07:58 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 28 Jun 2016 10:55:39 +0000 (07:55 -0300)
commite2b563971462f4f951577ce8dfe288f92735190e
treedcce5e4c8e535b6e5698f98b37d3a1328a050f35
parent80d23ff6b39862055eef9665fc602e99bc6dc180
[media] v4l: mt9t001: fix clean up in case of power-on failures

If the driver fails to reset the camera or to set up control handlers, it
has to power the camera back off.

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@s-opensource.com>
drivers/media/i2c/mt9t001.c