diff options
-rw-r--r-- | drivers/regulator/act8865-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/act8865-regulator.c b/drivers/regulator/act8865-regulator.c index f07be3647985..52d1b6cad76f 100644 --- a/drivers/regulator/act8865-regulator.c +++ b/drivers/regulator/act8865-regulator.c | |||
@@ -230,7 +230,7 @@ static int act8865_pdata_from_dt(struct device *dev, | |||
230 | if (!pdata->regulators) | 230 | if (!pdata->regulators) |
231 | return -ENOMEM; | 231 | return -ENOMEM; |
232 | 232 | ||
233 | pdata->num_regulators = matched; | 233 | pdata->num_regulators = ARRAY_SIZE(act8865_matches); |
234 | regulator = pdata->regulators; | 234 | regulator = pdata->regulators; |
235 | 235 | ||
236 | for (i = 0; i < ARRAY_SIZE(act8865_matches); i++) { | 236 | for (i = 0; i < ARRAY_SIZE(act8865_matches); i++) { |