summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/regulator/pwm-regulator.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c
index 666bc3bb52ef..cb2f22c02469 100644
--- a/drivers/regulator/pwm-regulator.c
+++ b/drivers/regulator/pwm-regulator.c
@@ -316,11 +316,9 @@ static int pwm_regulator_probe(struct platform_device *pdev)
316 return ret; 316 return ret;
317 } 317 }
318 318
319 /* 319 ret = pwm_adjust_config(drvdata->pwm);
320 * FIXME: pwm_apply_args() should be removed when switching to the 320 if (ret)
321 * atomic PWM API. 321 return ret;
322 */
323 pwm_apply_args(drvdata->pwm);
324 322
325 regulator = devm_regulator_register(&pdev->dev, 323 regulator = devm_regulator_register(&pdev->dev,
326 &drvdata->desc, &config); 324 &drvdata->desc, &config);