summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/powergate-ops-txx.c
diff options
context:
space:
mode:
authorDeepak Nibade <dnibade@nvidia.com>2013-01-17 13:59:43 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:50:21 -0700
commitee0e6d42a066bf3710f801d49d916001e3a27f06 (patch)
treeb417f07e6eb1b9a86ac2020879a8264b56a45f1e /arch/arm/mach-tegra/powergate-ops-txx.c
parentfc8f61a07032ef908563143378ed6bd5a05fe9c0 (diff)
arm: tegra: powergate: handle function return value
Fix coverity issue Coverity id : 22217 Bug 1046331 Change-Id: I10af0b3e6050d62da737bdedf82631be3734b479 Signed-off-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-on: http://git-master/r/191943 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/powergate-ops-txx.c')
-rw-r--r--arch/arm/mach-tegra/powergate-ops-txx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-tegra/powergate-ops-txx.c b/arch/arm/mach-tegra/powergate-ops-txx.c
index 75246c610577..315d31b9e143 100644
--- a/arch/arm/mach-tegra/powergate-ops-txx.c
+++ b/arch/arm/mach-tegra/powergate-ops-txx.c
@@ -118,7 +118,9 @@ int tegraxx_powergate_partition_with_clk_off(int id,
err_powergate_clk:
WARN(1, "Could not Powergate Partition %d, all clks not disabled", id);
err_powergating:
- partition_clk_enable(pg_info);
+ ret = partition_clk_enable(pg_info);
+ if (ret)
+ return ret;
WARN(1, "Could not Powergate Partition %d", id);
return ret;
}