]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cpufreq: mediatek: Use dev_err_probe in every error path in probe
authorNĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Fri, 5 Jul 2024 15:54:43 +0000 (11:54 -0400)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 9 Jul 2024 03:15:43 +0000 (08:45 +0530)
commitce87974811e015eb0e002c1b64a980d7a9d4c167
tree5b97ec64e08844646f4a848d4873267212ea078b
parentccf51454145bffd98e31cdbe54a4262473c609e2
cpufreq: mediatek: Use dev_err_probe in every error path in probe

Use the dev_err_probe() helper to log the errors on every error path in
the probe function and its sub-functions. This includes
* adding error messages where there was none
* converting over dev_err/dev_warn
* removing the top-level error message after mtk_cpu_dvfs_info_init() is
  called, since every error path inside that function already logs the
  error reason. This gets rid of the misleading error message when probe
  is deferred:

    mtk-cpufreq mtk-cpufreq: failed to initialize dvfs info for cpu0

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: NĂ­colas F. R. A. Prado <nfraprado@collabora.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/mediatek-cpufreq.c