Skip to content

Commit b791c7f

Browse files
tititiou36vireshk
authored andcommitted
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: 71a37cd ("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>
1 parent 70d99a8 commit b791c7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cpufreq/scmi-cpufreq.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ static int scmi_cpufreq_init(struct cpufreq_policy *policy)
174174
nr_opp = dev_pm_opp_get_opp_count(cpu_dev);
175175
if (nr_opp <= 0) {
176176
dev_err(cpu_dev, "%s: No OPPs for this device: %d\n",
177-
__func__, ret);
177+
__func__, nr_opp);
178178

179179
ret = -ENODEV;
180180
goto out_free_opp;

0 commit comments

Comments
 (0)