video: tegra: ar0832: fix regulator mismatch
authorJihoon Bang <jbang@nvidia.com>
Fri, 9 Dec 2011 01:50:34 +0000 (17:50 -0800)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 14 Sep 2013 08:03:42 +0000 (01:03 -0700)
commit9877d3574cd8b82d5fc7118cdde322d8225c4a65
treebf90f9c8e8bf9e3a56a9a17ac26c379807470ea8
parent87e932f47e8d45659fd7f6e18e60c2dc33926910
video: tegra: ar0832: fix regulator mismatch

Fix regulator enable/disable mismatch. AR0832_IOCTL_GET_SENSOR_ID
doesn't turn on power when it's called second time. This condition
wasn't handled properly in ar0832_power_off.

Remove redundant sleep() to speed up camera launch and switch.
Remove redundant variable.

Bug 913437

Change-Id: Ic5464a0fb4b8f3d8421a95fbfb6a399830887012
Signed-off-by: Jihoon Bang <jbang@nvidia.com>
Reviewed-on: http://git-master/r/69116
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Dan Willemsen <dwillemsen@nvidia.com>
Reviewed-by: Qi Wang <qiw@nvidia.com>

Rebase-Id: R19f1cd2c7421f52db4387f937761b9957dd9317a
drivers/media/video/tegra/ar0832_main.c