media: mt9m111: Fix error handling in mt9m111_power_on
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 31 May 2019 20:12:49 +0000 (16:12 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Mon, 24 Jun 2019 15:12:16 +0000 (11:12 -0400)
commit04bc4f6631f7e47a9fe47ea6c0794ed56d9b3cf8
tree8365e5dd5e395ca597d41ea342b7e93f7ec2bda0
parent9a57d72b94869ceb29f932e95cb39f0cc156ea1f
media: mt9m111: Fix error handling in mt9m111_power_on

The mt9m111_power_on function did not properly clean up whenever it
encountered an error. Do that now.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/i2c/mt9m111.c