From: Hiroshi Doyu <[email protected]>

Check a return value for tegra_powergate_remove_clamping().

Signed-off-by: Hiroshi Doyu <[email protected]>
Signed-off-by: Joseph Lo <[email protected]>
---
 arch/arm/mach-tegra/platsmp.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/arm/mach-tegra/platsmp.c b/arch/arm/mach-tegra/platsmp.c
index 2c6b3d5..4dfc75e 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. */
-- 
1.8.1.1

--
To unsubscribe from this list: send the line "unsubscribe linux-tegra" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to