projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19c6b54
)
regulator: 88pm800: forever loop in pm800_regulator_probe()
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 14 Aug 2013 16:14:03 +0000
(19:14 +0300)
committer
Mark Brown
<broonie@linaro.org>
Wed, 14 Aug 2013 18:09:44 +0000
(19:09 +0100)
This is supposed to be testing "i < ARRAY_SIZE()" instead of just
"ARRAY_SIZE()".
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/88pm800.c
patch
|
blob
|
history
diff --git
a/drivers/regulator/88pm800.c
b/drivers/regulator/88pm800.c
index f42356552f21c7162e7f03efc76035be3884f678..b30f5ce659d1bab878b79cdb0e1a8f9bb222fc3e 100644
(file)
--- a/
drivers/regulator/88pm800.c
+++ b/
drivers/regulator/88pm800.c
@@
-302,7
+302,7
@@
static int pm800_regulator_probe(struct platform_device *pdev)
unsigned int count = 0;
/* Check whether num_regulator is valid. */
- for (i = 0; ARRAY_SIZE(pdata->regulators); i++) {
+ for (i = 0;
i <
ARRAY_SIZE(pdata->regulators); i++) {
if (pdata->regulators[i])
count++;
}