summaryrefslogtreecommitdiff
path: root/arch/arm/mach-tegra/platsmp.c
diff options
context:
space:
mode:
authorHiroshi Doyu <hdoyu@nvidia.com>2013-02-22 10:24:25 +0400
committerStephen Warren <swarren@nvidia.com>2013-03-12 00:29:22 +0400
commitb4c25cc38260950f9ede38a88f932c7958adb2ec (patch)
tree4d2cbefacb1e840ee92edc09499097c5185071f1 /arch/arm/mach-tegra/platsmp.c
parentb095ae2b9f35c838257786de27e550d62bd7c763 (diff)
downloadlinux-b4c25cc38260950f9ede38a88f932c7958adb2ec.tar.xz
ARM: tegra: Fix unchecked return value
Check a return value for tegra_powergate_remove_clamping(). Signed-off-by: Hiroshi Doyu <hdoyu@nvidia.com> Signed-off-by: Joseph Lo <josephl@nvidia.com> Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/mach-tegra/platsmp.c')
-rw-r--r--arch/arm/mach-tegra/platsmp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c
index 2c6b3d55213b..4dfc75e118ff 100644
--- a/arch/arm/mach-tegra/platsmp.c
+++ b/arch/arm/mach-tegra/platsmp.c
@@ -124,6 +124,9 @@ remove_clamps:
/* Remove I/O clamps. */
ret = tegra_powergate_remove_clamping(pwrgateid);
+ if (ret)
+ return ret;
+
udelay(10);
/* Clear flow controller CSR. */