media: i2c: ov5693: Fix potential power-leaks
authorSudhir Vyas <svyas@nvidia.com>
Wed, 14 Sep 2016 05:58:45 +0000 (10:58 +0530)
committermobile promotions <svcmobile_promotions@nvidia.com>
Mon, 31 Oct 2016 21:19:44 +0000 (14:19 -0700)
commit62cfea56767e680f202c8e3923dafb0c8dcfadb0
tree2784b8a03ec020169549e5d4aee2509ad2ee2c70
parent0d349fff447e4b948ddcd419a3609f43359b7ab1
media: i2c: ov5693: Fix potential power-leaks

- Make sure to power off camera rails
in case of intermediate errors.
- Remove unnecessary return error checks for
power-off function calls.

Bug 200186908
Bug 200233021

Change-Id: I63ef1929535756b8378380fee5134b9c275d96bb
Signed-off-by: Sudhir Vyas <svyas@nvidia.com>
Reviewed-on: http://git-master/r/1220516
(cherry picked from commit 600f6a141c99893ac92d937d4cb0e37834faf2fc)
Reviewed-on: http://git-master/r/1242841
Reviewed-by: Aaron Huang <aaronh@nvidia.com>
Tested-by: Aaron Huang <aaronh@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Jihoon Bang <jbang@nvidia.com>
drivers/media/i2c/ov5693.c