diff options
| -rw-r--r-- | drivers/regulator/max8660.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/regulator/max8660.c b/drivers/regulator/max8660.c index f187c8f13e22..4071d74fa828 100644 --- a/drivers/regulator/max8660.c +++ b/drivers/regulator/max8660.c | |||
| @@ -442,9 +442,9 @@ static int max8660_probe(struct i2c_client *client, | |||
| 442 | for (i = 0; i < pdata->num_subdevs; i++) { | 442 | for (i = 0; i < pdata->num_subdevs; i++) { |
| 443 | 443 | ||
| 444 | if (!pdata->subdevs[i].platform_data) | 444 | if (!pdata->subdevs[i].platform_data) |
| 445 | return ret; | 445 | boot_on = false; |
| 446 | 446 | else | |
| 447 | boot_on = pdata->subdevs[i].platform_data->constraints.boot_on; | 447 | boot_on = pdata->subdevs[i].platform_data->constraints.boot_on; |
| 448 | 448 | ||
| 449 | switch (pdata->subdevs[i].id) { | 449 | switch (pdata->subdevs[i].id) { |
| 450 | case MAX8660_V3: | 450 | case MAX8660_V3: |
