[media] smiapp: Fix error handling in power on sequence
authorSakari Ailus <sakari.ailus@linux.intel.com>
Tue, 29 Aug 2017 12:41:22 +0000 (09:41 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Wed, 4 Oct 2017 20:23:37 +0000 (17:23 -0300)
commitd339ec6a4261c030d8fdea75625c925f33549a2e
tree058e505c9e2749e40b872ce79e893bcdb62165c2
parent880d45f8fcbacfa239533151f324210975698e0e
[media] smiapp: Fix error handling in power on sequence

The error handling code in smiapp_power_on() returned in case of a failed
I2C write instead of cleaning up the mess. Fix this.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/i2c/smiapp/smiapp-core.c