ARM: OMAP: use consistent error checking
[deliverable/linux.git] / arch / arm / mach-omap2 / omap_hwmod.c
index 4653efb87a2721ea20a9fe06a30a6c204d6d2282..b7c0a2d3f2c730843725eba7a3dc6430b538fc71 100644 (file)
@@ -1661,7 +1661,7 @@ static int _deassert_hardreset(struct omap_hwmod *oh, const char *name)
                return -ENOSYS;
 
        ret = _lookup_hardreset(oh, name, &ohri);
-       if (IS_ERR_VALUE(ret))
+       if (ret < 0)
                return ret;
 
        if (oh->clkdm) {
@@ -2387,7 +2387,7 @@ static int __init _init(struct omap_hwmod *oh, void *data)
        _init_mpu_rt_base(oh, NULL);
 
        r = _init_clocks(oh, NULL);
-       if (IS_ERR_VALUE(r)) {
+       if (r < 0) {
                WARN(1, "omap_hwmod: %s: couldn't init clocks\n", oh->name);
                return -EINVAL;
        }
This page took 0.031143 seconds and 5 git commands to generate.