|
@@ -230,7 +230,7 @@ static int act8865_pdata_from_dt(struct device *dev,
|
|
if (!pdata->regulators)
|
|
if (!pdata->regulators)
|
|
return -ENOMEM;
|
|
return -ENOMEM;
|
|
|
|
|
|
- pdata->num_regulators = matched;
|
|
|
|
|
|
+ pdata->num_regulators = ARRAY_SIZE(act8865_matches);
|
|
regulator = pdata->regulators;
|
|
regulator = pdata->regulators;
|
|
|
|
|
|
for (i = 0; i < ARRAY_SIZE(act8865_matches); i++) {
|
|
for (i = 0; i < ARRAY_SIZE(act8865_matches); i++) {
|