]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - arch/arm/mach-omap2/smartreflex.c
OMAP: PM: SmartReflex: Add missing IS_ERR test
[mv-sheeva.git] / arch / arm / mach-omap2 / smartreflex.c
index 77ecebf3fae2013feb786029b83c2f36d2db9cf9..d7deadfaddbcd37ff107436cb959975a7ba94570 100644 (file)
@@ -966,7 +966,7 @@ static int __devexit omap_sr_remove(struct platform_device *pdev)
        }
 
        sr_info = _sr_lookup(pdata->voltdm);
-       if (!sr_info) {
+       if (IS_ERR(sr_info)) {
                dev_warn(&pdev->dev, "%s: omap_sr struct not found\n",
                        __func__);
                return -EINVAL;