tegra: fix processing of regulator notifier event
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 13 Dec 2011 10:13:49 +0000 (19:13 +0900)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 21 Dec 2011 06:36:26 +0000 (11:36 +0530)
commitada2a1b016611ac9bbeee8c8281a339d448e2149
tree988edf939062113478d9c194759b6c144fda6e15
parentdb128e88fee3435c10ba0b9a2c1479b85a14ede7
tegra: fix processing of regulator notifier event

Regulator notifier event chain may be called with several events OR'd
together, e.g. in drivers/regulator/core.c:

_notifier_call_chain(rdev, REGULATOR_EVENT_FORCE_DISABLE |
REGULATOR_EVENT_DISABLE,

Bug 913417

Change-Id: Ifba9860c1ee59c2fe2a4ee3c901e983912e07139
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-on: http://git-master/r/69725
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Aleksandr Frid <afrid@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
arch/arm/mach-tegra/powerdetect.c