cpufreq: scmi: Fix an error message
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Thu, 6 May 2021 19:09:48 +0000 (21:09 +0200)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 20 May 2021 03:58:32 +0000 (09:28 +0530)
commitb791c7f94680ba9b60b0c0786b1d0eb4393053d6
treecd1366b182889bdda4678c2e74b62a9316cd34ee
parent70d99a8f0442bbc5abfa34ea27ce1fcacff57f90
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: 71a37cd6a59d ("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>
drivers/cpufreq/scmi-cpufreq.c