mbox series

[-next,0/4] cpufreq: Switch to use dev_err_probe() helper

Message ID 20220927154021.816570-1-yangyingliang@huawei.com
Headers show
Series cpufreq: Switch to use dev_err_probe() helper | expand

Message

Yang Yingliang Sept. 27, 2022, 3:40 p.m. UTC
This patchset is trying to replace dev_err() with dev_err_probe() in
the probe path. With this helper, it prints the error name instead of
printing error code which is more readable and sets the defer probe
reason which can be checked later through debugfs, and it makes error
path more clean.

Yang Yingliang (4):
  cpufreq: dt: Switch to use dev_err_probe() helper
  cpufreq: imx6q: Switch to use dev_err_probe() helper
  cpufreq: qcom-nvmem: Switch to use dev_err_probe() helper
  cpufreq: sun50i: Switch to use dev_err_probe() helper

 drivers/cpufreq/cpufreq-dt.c           | 6 ++----
 drivers/cpufreq/imx6q-cpufreq.c        | 4 +---
 drivers/cpufreq/qcom-cpufreq-nvmem.c   | 7 ++-----
 drivers/cpufreq/sun50i-cpufreq-nvmem.c | 9 +++------
 4 files changed, 8 insertions(+), 18 deletions(-)

Comments

Viresh Kumar Oct. 10, 2022, 5:17 a.m. UTC | #1
On 27-09-22, 23:40, Yang Yingliang wrote:
> This patchset is trying to replace dev_err() with dev_err_probe() in
> the probe path. With this helper, it prints the error name instead of
> printing error code which is more readable and sets the defer probe
> reason which can be checked later through debugfs, and it makes error
> path more clean.
> 
> Yang Yingliang (4):
>   cpufreq: dt: Switch to use dev_err_probe() helper
>   cpufreq: imx6q: Switch to use dev_err_probe() helper
>   cpufreq: qcom-nvmem: Switch to use dev_err_probe() helper
>   cpufreq: sun50i: Switch to use dev_err_probe() helper
> 
>  drivers/cpufreq/cpufreq-dt.c           | 6 ++----
>  drivers/cpufreq/imx6q-cpufreq.c        | 4 +---
>  drivers/cpufreq/qcom-cpufreq-nvmem.c   | 7 ++-----
>  drivers/cpufreq/sun50i-cpufreq-nvmem.c | 9 +++------
>  4 files changed, 8 insertions(+), 18 deletions(-)

Applied. Thanks.