diff options
author | Mark Brown <broonie@linaro.org> | 2013-08-09 14:07:12 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-13 12:07:44 -0400 |
commit | 7d748971c0c04122cc7a06bc0573e27e106efe6a (patch) | |
tree | 59e23cccaf8e2abfddb15a949a355e68b3e07ded | |
parent | 6ae8717a4897d776097c5c2578a907d3c59b1e9f (diff) |
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>
-rw-r--r-- | drivers/cpufreq/cpufreq-cpu0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/cpufreq-cpu0.c b/drivers/cpufreq/cpufreq-cpu0.c index ad1fde277661..e9dedb27deca 100644 --- a/drivers/cpufreq/cpufreq-cpu0.c +++ b/drivers/cpufreq/cpufreq-cpu0.c | |||
@@ -197,7 +197,7 @@ static int cpu0_cpufreq_probe(struct platform_device *pdev) | |||
197 | cpu_dev = &pdev->dev; | 197 | cpu_dev = &pdev->dev; |
198 | cpu_dev->of_node = np; | 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 | if (IS_ERR(cpu_reg)) { | 201 | if (IS_ERR(cpu_reg)) { |
202 | /* | 202 | /* |
203 | * If cpu0 regulator supply node is present, but regulator is | 203 | * If cpu0 regulator supply node is present, but regulator is |