ARM: tegra: Fix unchecked return value
authorHiroshi Doyu <hdoyu@nvidia.com>
Fri, 22 Feb 2013 06:24:25 +0000 (14:24 +0800)
committerStephen Warren <swarren@nvidia.com>
Mon, 11 Mar 2013 20:29:22 +0000 (14:29 -0600)
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>
arch/arm/mach-tegra/platsmp.c

index 2c6b3d55213b49f16ee256548279b1742111bd20..4dfc75e118ff89d3e684f305932863302d57ef17 100644 (file)
@@ -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. */