mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
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/[email protected] Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Nicola Mazzucato <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
This commit is contained in:
committed by
Sudeep Holla
parent
a38fd87484
commit
71a37cd6a5
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user