diff options
Diffstat (limited to 'drivers/regulator/max17135-regulator.c')
-rw-r--r-- | drivers/regulator/max17135-regulator.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/regulator/max17135-regulator.c b/drivers/regulator/max17135-regulator.c index ec91951dfb19..0967dfe47962 100644 --- a/drivers/regulator/max17135-regulator.c +++ b/drivers/regulator/max17135-regulator.c @@ -704,6 +704,8 @@ static int max17135_regulator_probe(struct platform_device *pdev) struct max17135_data *priv; struct regulator_dev **rdev; struct regulator_config config = { .ena_gpio = -ENODEV }; + int size, i, ret = 0; + if (max17135->dev->of_node) { ret = max17135_pmic_dt_parse_pdata(pdev, pdata); if (ret) |