aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c4
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 4653efb87a27..b7c0a2d3f2c7 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -1661,7 +1661,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name)
1661 return -ENOSYS; 1661 return -ENOSYS;
1662 1662
1663 ret = _lookup_hardreset(oh, name, &ohri); 1663 ret = _lookup_hardreset(oh, name, &ohri);
1664 if (IS_ERR_VALUE(ret)) 1664 if (ret < 0)
1665 return ret; 1665 return ret;
1666 1666
1667 if (oh->clkdm) { 1667 if (oh->clkdm) {
@@ -2387,7 +2387,7 @@ static int __init _init(struct omap_hwmod *oh, void *data)
2387 _init_mpu_rt_base(oh, NULL); 2387 _init_mpu_rt_base(oh, NULL);
2388 2388
2389 r = _init_clocks(oh, NULL); 2389 r = _init_clocks(oh, NULL);
2390 if (IS_ERR_VALUE(r)) { 2390 if (r < 0) {
2391 WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name); 2391 WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name);
2392 return -EINVAL; 2392 return -EINVAL;
2393 } 2393 }