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>
Thu, 1 Dec 2011 05:47:09 +0000 (21:47 -0800)
commitbd027678d1bdf95544b7f14df0e8019bf95596d9
treee0649fb649cfef46c07d9ca716451e027a670527
parent14b876ce6cbf9b9174999487d7e894139798d820
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