The _reset() hook should early when _soft_reset() fails, not it if
succeeds.  Currently, it aborts when _soft_reset() succeeds, resulting
in not waiting for RESETDONE.

Signed-off-by: Kevin Hilman <[email protected]>
---
 arch/arm/mach-omap2/omap_hwmod.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index b103797..76b6845 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -746,7 +746,7 @@ static int _reset(struct omap_hwmod *oh)
 
        v = oh->_sysc_cache;
        r = _set_softreset(oh, &v);
-       if (!r)
+       if (r)
                return r;
        _write_sysconfig(v, oh);
 
-- 
1.6.3.3

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

Reply via email to