Skip to content

Commit 5ee6425

Browse files
ahalaneyvireshk
authored andcommitted
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>
1 parent f855341 commit 5ee6425

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/cpufreq/qcom-cpufreq-hw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ static int qcom_cpufreq_hw_driver_probe(struct platform_device *pdev)
661661

662662
ret = dev_pm_opp_of_find_icc_paths(cpu_dev, NULL);
663663
if (ret)
664-
return ret;
664+
return dev_err_probe(dev, ret, "Failed to find icc paths\n");
665665

666666
for (num_domains = 0; num_domains < MAX_FREQ_DOMAINS; num_domains++)
667667
if (!platform_get_resource(pdev, IORESOURCE_MEM, num_domains))

0 commit comments

Comments
 (0)