diff options
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r-- | arch/arm/mach-omap2/omap_hwmod.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c index a202a4785104..ede9d495a9e2 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -1666,7 +1666,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name) | |||
1666 | return -ENOSYS; | 1666 | return -ENOSYS; |
1667 | 1667 | ||
1668 | ret = _lookup_hardreset(oh, name, &ohri); | 1668 | ret = _lookup_hardreset(oh, name, &ohri); |
1669 | if (IS_ERR_VALUE(ret)) | 1669 | if (ret < 0) |
1670 | return ret; | 1670 | return ret; |
1671 | 1671 | ||
1672 | if (oh->clkdm) { | 1672 | if (oh->clkdm) { |
@@ -2416,7 +2416,7 @@ static int __init _init(struct omap_hwmod *oh, void *data) | |||
2416 | _init_mpu_rt_base(oh, NULL); | 2416 | _init_mpu_rt_base(oh, NULL); |
2417 | 2417 | ||
2418 | r = _init_clocks(oh, NULL); | 2418 | r = _init_clocks(oh, NULL); |
2419 | if (IS_ERR_VALUE(r)) { | 2419 | if (r < 0) { |
2420 | WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name); | 2420 | WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name); |
2421 | return -EINVAL; | 2421 | return -EINVAL; |
2422 | } | 2422 | } |