projects
/
linux-flexiantxendom0-3.2.10.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-flexiantxendom0-3.2.10.git]
/
drivers
/
regulator
/
88pm8607.c
diff --git
a/drivers/regulator/88pm8607.c
b/drivers/regulator/88pm8607.c
index
5dcdb0f
..
ca0d608
100644
(file)
--- a/
drivers/regulator/88pm8607.c
+++ b/
drivers/regulator/88pm8607.c
@@
-413,7
+413,7
@@
static int __devinit pm8607_regulator_probe(struct platform_device *pdev)
if (info->desc.id == res->start)
break;
}
- if ((i < 0) || (i > PM8607_ID_RG_MAX)) {
+ if (i == ARRAY_SIZE(pm8607_regulator_info)) {
dev_err(&pdev->dev, "Failed to find regulator %llu\n",
(unsigned long long)res->start);
return -EINVAL;