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 5f33c2da6999..3f50f680372e 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -1662,7 +1662,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name) | |||
1662 | return -ENOSYS; | 1662 | return -ENOSYS; |
1663 | 1663 | ||
1664 | ret = _lookup_hardreset(oh, name, &ohri); | 1664 | ret = _lookup_hardreset(oh, name, &ohri); |
1665 | if (IS_ERR_VALUE(ret)) | 1665 | if (ret < 0) |
1666 | return ret; | 1666 | return ret; |
1667 | 1667 | ||
1668 | if (oh->clkdm) { | 1668 | if (oh->clkdm) { |
@@ -2412,7 +2412,7 @@ static int __init _init(struct omap_hwmod *oh, void *data) | |||
2412 | _init_mpu_rt_base(oh, NULL); | 2412 | _init_mpu_rt_base(oh, NULL); |
2413 | 2413 | ||
2414 | r = _init_clocks(oh, NULL); | 2414 | r = _init_clocks(oh, NULL); |
2415 | if (IS_ERR_VALUE(r)) { | 2415 | if (r < 0) { |
2416 | WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name); | 2416 | WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name); |
2417 | return -EINVAL; | 2417 | return -EINVAL; |
2418 | } | 2418 | } |