OSDN Git Service

OPP: Use dev_err_probe() when failing to get icc_path
authorAndrew Halaney <ahalaney@redhat.com>
Fri, 23 Jun 2023 15:53:38 +0000 (10:53 -0500)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 26 Jun 2023 06:40:26 +0000 (12:10 +0530)
commitfa155f4f834882a79788218aea4914568b41dd0f
treed242fbc20255176ee1edc7f309fe6a36d4e1002f
parent7c41cdcd3bbee5d49de9d4821b15e49d155ff22b
OPP: Use dev_err_probe() when failing to get icc_path

This, in tandem with dynamic debug, can print useful information about
-EPROBE_DEFFER like below, and keeps similar behavior for other errors:

    [   16.561072] cpu cpu0: error -EPROBE_DEFER: dev_pm_opp_of_find_icc_paths: Unable to get path0
    [   16.575777] platform 18591000.cpufreq: deferred probe pending

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/of.c