summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-tegra/powergate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/powergate.c b/arch/arm/mach-tegra/powergate.c
index 0acb6bc24f4d..8f2fb2eb8969 100644
--- a/arch/arm/mach-tegra/powergate.c
+++ b/arch/arm/mach-tegra/powergate.c
@@ -226,7 +226,7 @@ bool tegra_powergate_is_powered(int id)
u32 status;
if (id < 0 || id >= TEGRA_NUM_POWERGATE)
- return -EINVAL;
+ return false;
status = pmc_read(PWRGATE_STATUS) & (1 << id);
return !!status;