diff options
author | Niklas Cassel <niklas.cassel@linaro.org> | 2018-07-17 16:48:21 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2018-07-18 04:14:38 -0400 |
commit | f54ab690ad68e4c5a5b4d4b5dbb28a35018546c5 (patch) | |
tree | eb6b2a5f4e85d72d9f7d141b9741bc1a6301a5aa | |
parent | 33477d84c26bbfa626da2c032e567a90dd70a528 (diff) |
cpufreq: qcom-kryo: Silently error out on EPROBE_DEFER
If of_nvmem_cell_get() fails due to probe deferal, we shouldn't print an
error message. Just be silent in this case.
Signed-off-by: Niklas Cassel <niklas.cassel@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
-rw-r--r-- | drivers/cpufreq/qcom-cpufreq-kryo.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/cpufreq/qcom-cpufreq-kryo.c b/drivers/cpufreq/qcom-cpufreq-kryo.c index 29389accf3e9..b8d1e6875f16 100644 --- a/drivers/cpufreq/qcom-cpufreq-kryo.c +++ b/drivers/cpufreq/qcom-cpufreq-kryo.c | |||
@@ -109,8 +109,9 @@ static int qcom_cpufreq_kryo_probe(struct platform_device *pdev) | |||
109 | speedbin_nvmem = of_nvmem_cell_get(np, NULL); | 109 | speedbin_nvmem = of_nvmem_cell_get(np, NULL); |
110 | of_node_put(np); | 110 | of_node_put(np); |
111 | if (IS_ERR(speedbin_nvmem)) { | 111 | if (IS_ERR(speedbin_nvmem)) { |
112 | dev_err(cpu_dev, "Could not get nvmem cell: %ld\n", | 112 | if (PTR_ERR(speedbin_nvmem) != -EPROBE_DEFER) |
113 | PTR_ERR(speedbin_nvmem)); | 113 | dev_err(cpu_dev, "Could not get nvmem cell: %ld\n", |
114 | PTR_ERR(speedbin_nvmem)); | ||
114 | return PTR_ERR(speedbin_nvmem); | 115 | return PTR_ERR(speedbin_nvmem); |
115 | } | 116 | } |
116 | 117 | ||