aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/max77686.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index b411af00065d..de020adf0568 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -410,8 +410,6 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev,
410 rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) * 410 rdata = devm_kzalloc(&pdev->dev, sizeof(*rdata) *
411 pdata->num_regulators, GFP_KERNEL); 411 pdata->num_regulators, GFP_KERNEL);
412 if (!rdata) { 412 if (!rdata) {
413 dev_err(&pdev->dev,
414 "could not allocate memory for regulator data\n");
415 of_node_put(regulators_np); 413 of_node_put(regulators_np);
416 return -ENOMEM; 414 return -ENOMEM;
417 } 415 }