Commit 7d748971c0c04122cc7a06bc0573e27e106efe6a

Authored by Mark Brown
1 parent 6ae8717a48

cpufreq: cpufreq-cpu0: Use devm_regulator_get_optional()

Since the cpufreq-cpu0 driver is capable of coping without a software
controllable regulator and would be confused by a dummy one it should
use devm_regulator_get_optional() to ensure no dummy is provided.

Signed-off-by: Mark Brown <broonie@linaro.org>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/cpufreq/cpufreq-cpu0.c
... ... @@ -197,7 +197,7 @@
197 197 cpu_dev = &pdev->dev;
198 198 cpu_dev->of_node = np;
199 199  
200   - cpu_reg = devm_regulator_get(cpu_dev, "cpu0");
  200 + cpu_reg = devm_regulator_get_optional(cpu_dev, "cpu0");
201 201 if (IS_ERR(cpu_reg)) {
202 202 /*
203 203 * If cpu0 regulator supply node is present, but regulator is