git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
OMAP: PM: SmartReflex: Add missing IS_ERR test
[pandora-kernel.git]
/
arch
/
arm
/
mach-omap2
/
smartreflex.c
diff --git
a/arch/arm/mach-omap2/smartreflex.c
b/arch/arm/mach-omap2/smartreflex.c
index
77ecebf
..
d7deadf
100644
(file)
--- 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)
}
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;