arm: tegra: cardhu: handle regulator_get error
authorPrayas Mohanty <pmohanty@nvidia.com>
Wed, 22 Jun 2011 11:05:43 +0000 (16:05 +0530)
committerDan Willemsen <dwillemsen@nvidia.com>
Sat, 24 Mar 2012 02:57:13 +0000 (19:57 -0700)
commitd9dc3aa0e6d6953b56be0cd6480e086d220b7d0c
treee81b36b4a73d044ff4f6a1567223b7e88da053b1
parent82ffa111fbb2ee9bd5a4b7d23cf2ff5aecfba514
arm: tegra: cardhu: handle regulator_get error

For sh532u, when regulator_get fails, it still returns
unwanted value. Reset regulator variable to NULL and
return error.

bug 841078

Original-Change-Id: I7265b2b5ca40405c92555a242d7d39f5dfe2bb07
Reviewed-on: http://git-master/r/37848
Reviewed-by: Alok Chauhan <alokc@nvidia.com>
Tested-by: Prayas Mohanty <pmohanty@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>

Rebase-Id: R74efd1bf6a77b71f19a32058f55ba094e213648d
arch/arm/mach-tegra/board-cardhu-sensors.c