diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index c2c798c08c2b..2520d46c8508 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -610,8 +610,6 @@ static int _enable_wakeup(struct omap_hwmod *oh, u32 *v) | |||
610 | 610 | ||
611 | /* XXX test pwrdm_get_wken for this hwmod's subsystem */ | 611 | /* XXX test pwrdm_get_wken for this hwmod's subsystem */ |
612 | 612 | ||
613 | oh->_int_flags |= _HWMOD_WAKEUP_ENABLED; | ||
614 | |||
615 | return 0; | 613 | return 0; |
616 | } | 614 | } |
617 | 615 | ||
@@ -645,8 +643,6 @@ static int _disable_wakeup(struct omap_hwmod *oh, u32 *v) | |||
645 | 643 | ||
646 | /* XXX test pwrdm_get_wken for this hwmod's subsystem */ | 644 | /* XXX test pwrdm_get_wken for this hwmod's subsystem */ |
647 | 645 | ||
648 | oh->_int_flags &= ~_HWMOD_WAKEUP_ENABLED; | ||
649 | |||
650 | return 0; | 646 | return 0; |
651 | } | 647 | } |
652 | 648 | ||
@@ -1663,7 +1659,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name) | |||
1663 | return -ENOSYS; | 1659 | return -ENOSYS; |
1664 | 1660 | ||
1665 | ret = _lookup_hardreset(oh, name, &ohri); | 1661 | ret = _lookup_hardreset(oh, name, &ohri); |
1666 | if (IS_ERR_VALUE(ret)) | 1662 | if (ret < 0) |
1667 | return ret; | 1663 | return ret; |
1668 | 1664 | ||
1669 | if (oh->clkdm) { | 1665 | if (oh->clkdm) { |
@@ -2413,7 +2409,7 @@ static int __init _init(struct omap_hwmod *oh, void *data) | |||
2413 | _init_mpu_rt_base(oh, NULL); | 2409 | _init_mpu_rt_base(oh, NULL); |
2414 | 2410 | ||
2415 | r = _init_clocks(oh, NULL); | 2411 | r = _init_clocks(oh, NULL); |
2416 | if (IS_ERR_VALUE(r)) { | 2412 | if (r < 0) { |
2417 | WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name); | 2413 | WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name); |
2418 | return -EINVAL; | 2414 | return -EINVAL; |
2419 | } | 2415 | } |