ARM: tegra: powergate: Don't error out if new state == old state
authorThierry Reding <thierry.reding@avionic-design.de>
Thu, 28 Mar 2013 20:35:04 +0000 (21:35 +0100)
committerStephen Warren <swarren@nvidia.com>
Fri, 29 Mar 2013 16:38:30 +0000 (10:38 -0600)
commiteebd1fda2342014a50ed3fd132e5dc6e8b5251e8
tree04fb54e4078c8cc1b02aea5f5de47cecdcab5872
parent99f69fea23d3c87c4f3067cb69499ff76499d93b
ARM: tegra: powergate: Don't error out if new state == old state

Don't treat it as an error if a partition is already in the same power
state when a user wants to power it on or off. This allows code to
proceed if no state change is required.

Signed-off-by: Thierry Reding <thierry.reding@avionic-design.de>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
arch/arm/mach-tegra/powergate.c