]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: dt: Switch to use dev_err_probe() helper
authorYang Yingliang <yangyingliang@huawei.com>
Tue, 27 Sep 2022 15:40:18 +0000 (23:40 +0800)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 18 Oct 2022 10:52:25 +0000 (16:22 +0530)
commitadb32399bcf0676ce83ac5809e7f393863f56122
tree6f7e2c3a82fa73974c47781e9850e0de2903ca0e
parent75274f2abb69a6dad37a30db8b9fde86577a87f0
cpufreq: dt: Switch to use dev_err_probe() helper

In the probe path, dev_err() can be replaced with dev_err_probe()
which will check if error code is -EPROBE_DEFER and prints the
error name. It also sets the defer probe reason which can be
checked later through debugfs. It's more simple in error path.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt.c