diff options
author | Nicola Mazzucato <nicola.mazzucato@arm.com> | 2021-02-18 23:23:24 +0100 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2021-03-15 14:24:45 +0100 |
commit | 71a37cd6a59dc58df3f4e58db3f4f04c9e69da43 (patch) | |
tree | 34280cf704c2cf5eeae41549e5200d743da8b70e /drivers/cpufreq/scmi-cpufreq.c | |
parent | Linux 5.12-rc2 (diff) | |
download | linux-71a37cd6a59dc58df3f4e58db3f4f04c9e69da43.tar.xz linux-71a37cd6a59dc58df3f4e58db3f4f04c9e69da43.zip |
scmi-cpufreq: Remove deferred probe
The current implementation of the scmi_cpufreq_init() function returns
-EPROBE_DEFER when the OPP table is not populated. In practice the
cpufreq core cannot handle this error code.
Therefore, fix the return value and clarify the error message.
Link: https://lore.kernel.org/r/20210218222326.15788-2-nicola.mazzucato@arm.com
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Nicola Mazzucato <nicola.mazzucato@arm.com>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/cpufreq/scmi-cpufreq.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/cpufreq/scmi-cpufreq.c b/drivers/cpufreq/scmi-cpufreq.c index 5bd03b59887f..26a16dc96f8b 100644 --- a/drivers/cpufreq/scmi-cpufreq.c +++ b/drivers/cpufreq/scmi-cpufreq.c @@ -155,8 +155,10 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy) nr_opp = dev_pm_opp_get_opp_count(cpu_dev); if (nr_opp <= 0) { - dev_dbg(cpu_dev, "OPP table is not ready, deferring probe\n"); - ret = -EPROBE_DEFER; + dev_err(cpu_dev, "%s: No OPPs for this device: %d\n", + __func__, ret); + + ret = -ENODEV; goto out_free_opp; } |