diff options
author | Hiroshi Doyu <[email protected]> | 2013-02-22 14:24:25 +0800 |
---|---|---|
committer | Stephen Warren <[email protected]> | 2013-03-11 14:29:22 -0600 |
commit | b4c25cc38260950f9ede38a88f932c7958adb2ec (patch) | |
tree | 4d2cbefacb1e840ee92edc09499097c5185071f1 | |
parent | b095ae2b9f35c838257786de27e550d62bd7c763 (diff) |
ARM: tegra: Fix unchecked return value
Check a return value for tegra_powergate_remove_clamping().
Signed-off-by: Hiroshi Doyu <[email protected]>
Signed-off-by: Joseph Lo <[email protected]>
Signed-off-by: Stephen Warren <[email protected]>
-rw-r--r-- | arch/arm/mach-tegra/platsmp.c | 3 |
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. */ |