]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/thermal/armada_thermal.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
[linux.git] / drivers / thermal / armada_thermal.c
index 2c2f6d93034ec9764f3596d18cd3891d0e3565b6..92f67d40f2e96a876083a71b6287e2bf159243c6 100644 (file)
@@ -526,8 +526,8 @@ static int armada_thermal_probe_legacy(struct platform_device *pdev,
 
        /* First memory region points towards the status register */
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
-       if (IS_ERR(res))
-               return PTR_ERR(res);
+       if (!res)
+               return -EIO;
 
        /*
         * Edit the resource start address and length to map over all the