cpufreq: qcom-cpufreq-hw: Use dev_err_probe() when failing to get icc paths
authorAndrew Halaney <ahalaney@redhat.com>
Fri, 23 Jun 2023 15:57:07 +0000 (10:57 -0500)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 26 Jun 2023 06:39:47 +0000 (12:09 +0530)
commit5ee64250286e8c5162808667a9a8668488d9f577
tree55540afc59a462710a96546435deb5cbc80f85a1
parentf85534113f5ae90a52521cdb9e9977a43ee42626
cpufreq: qcom-cpufreq-hw: Use dev_err_probe() when failing to get icc paths

This way, if there's an issue (in this case a -EPROBE_DEFER), you can
get useful output:

    [root@dhcp19-243-150 ~]# cat /sys/kernel/debug/devices_deferred
    18591000.cpufreq        qcom-cpufreq-hw: Failed to find icc paths

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Reviewed-by: Bjorn Andersson <quic_bjorande@quicinc.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/qcom-cpufreq-hw.c