Merge commit '31d9adca82ce65e5c99d045b5fd917c702b6fce3' into tmp
[GitHub/LineageOS/android_kernel_motorola_exynos9610.git] / arch / arm / mach-omap2 / omap_hwmod.c
index c2c798c08c2b9f63a55bc11be5f654f80006431c..a62213e2d5262df479319f4bc24ef03a713bfb10 100644 (file)
@@ -1663,7 +1663,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) {
@@ -2413,7 +2413,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;
        }