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 e5cafed8ef25..2520d46c8508 100644 --- a/arch/arm/mach-omap2/omap_hwmod.c +++ b/arch/arm/mach-omap2/omap_hwmod.c | |||
@@ -1659,7 +1659,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name) | |||
1659 | return -ENOSYS; | 1659 | return -ENOSYS; |
1660 | 1660 | ||
1661 | ret = _lookup_hardreset(oh, name, &ohri); | 1661 | ret = _lookup_hardreset(oh, name, &ohri); |
1662 | if (IS_ERR_VALUE(ret)) | 1662 | if (ret < 0) |
1663 | return ret; | 1663 | return ret; |
1664 | 1664 | ||
1665 | if (oh->clkdm) { | 1665 | if (oh->clkdm) { |
@@ -2409,7 +2409,7 @@ static int __init _init(struct omap_hwmod *oh, void *data) | |||
2409 | _init_mpu_rt_base(oh, NULL); | 2409 | _init_mpu_rt_base(oh, NULL); |
2410 | 2410 | ||
2411 | r = _init_clocks(oh, NULL); | 2411 | r = _init_clocks(oh, NULL); |
2412 | if (IS_ERR_VALUE(r)) { | 2412 | if (r < 0) { |
2413 | 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); |
2414 | return -EINVAL; | 2414 | return -EINVAL; |
2415 | } | 2415 | } |