aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/smartreflex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/smartreflex.c b/arch/arm/mach-omap2/smartreflex.c
index 77ecebf3fae2..d7deadfaddbc 100644
--- a/arch/arm/mach-omap2/smartreflex.c
+++ b/arch/arm/mach-omap2/smartreflex.c
@@ -966,7 +966,7 @@ static int __devexit omap_sr_remove(struct platform_device *pdev)
966 } 966 }
967 967
968 sr_info = _sr_lookup(pdata->voltdm); 968 sr_info = _sr_lookup(pdata->voltdm);
969 if (!sr_info) { 969 if (IS_ERR(sr_info)) {
970 dev_warn(&pdev->dev, "%s: omap_sr struct not found\n", 970 dev_warn(&pdev->dev, "%s: omap_sr struct not found\n",
971 __func__); 971 __func__);
972 return -EINVAL; 972 return -EINVAL;