ARM: Tegra: Fix PowerGate status logic
authorBhavesh Parekh <bparekh@nvidia.com>
Thu, 31 Oct 2013 06:45:22 +0000 (11:45 +0530)
committerBharat Nihalani <bnihalani@nvidia.com>
Thu, 31 Oct 2013 16:27:58 +0000 (09:27 -0700)
commit095ba8e09b545222fdd343f9c65692057eb7bb29
tree686c2fa0804f8a41e81cf39330aec720cf2a2db0
parentb5e511ec02352d8811065f218623d0c7880e1dcd
ARM: Tegra: Fix PowerGate status logic

In the code we are reading value of PMC_PWRGATE_TOGGLE in reg variable.
But loop was checking for status variable. Fix the same

Change-Id: If18bf9ddcb403b60f084dee2edf3980e06ff2e3b
Signed-off-by: Bhavesh Parekh <bparekh@nvidia.com>
Reviewed-on: http://git-master/r/309991
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Prashant Gaikwad <pgaikwad@nvidia.com>
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Tested-by: Bharat Nihalani <bnihalani@nvidia.com>
arch/arm/mach-tegra/powergate.c