diff mbox

[2/2] OMAP2/3/4: omap_hwmod: fix reset bug

Message ID 1247012257-19407-3-git-send-email-khilman@deeprootsystems.com (mailing list archive)
State Accepted
Delegated to: Kevin Hilman
Headers show

Commit Message

Kevin Hilman July 8, 2009, 12:17 a.m. UTC
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 <khilman@deeprootsystems.com>
---
 arch/arm/mach-omap2/omap_hwmod.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

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);