mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
cpufreq: scmi: Fix an error message
'ret' is known to be 0 here.
The last error code is stored in 'nr_opp', so use it in the error message.
Fixes: 71a37cd6a5
("scmi-cpufreq: Remove deferred probe")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
This commit is contained in:
parent
70d99a8f04
commit
b791c7f946
@ -174,7 +174,7 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy)
|
|||||||
nr_opp = dev_pm_opp_get_opp_count(cpu_dev);
|
nr_opp = dev_pm_opp_get_opp_count(cpu_dev);
|
||||||
if (nr_opp <= 0) {
|
if (nr_opp <= 0) {
|
||||||
dev_err(cpu_dev, "%s: No OPPs for this device: %d\n",
|
dev_err(cpu_dev, "%s: No OPPs for this device: %d\n",
|
||||||
__func__, ret);
|
__func__, nr_opp);
|
||||||
|
|
||||||
ret = -ENODEV;
|
ret = -ENODEV;
|
||||||
goto out_free_opp;
|
goto out_free_opp;
|
||||||
|
Loading…
Reference in New Issue
Block a user