devres: switch to use dev_err_probe() for unification
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 3 Apr 2024 10:46:56 +0000 (13:46 +0300)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Apr 2024 04:07:06 +0000 (21:07 -0700)
commitf36c54f3ce3d69aadccc56bc7dc2cf6c464f3522
tree34a8144e586de992e37d5c33c87a8b2b4d2494e6
parentb157f0e97e3ed6158cde4f247da4c537c3f6a0f9
devres: switch to use dev_err_probe() for unification

Patch series "devres: A couple of cleanups".

A couple of ad-hoc cleanups. No functional changes intended.

This patch (of 2):

The devm_*() APIs are supposed to be called during the ->probe() stage.
Many drivers (especially new ones) have switched to use dev_err_probe()
for error messaging for the sake of unification.  Let's do the same in the
devres APIs.

Link: https://lkml.kernel.org/r/20240403104820.557487-1-andriy.shevchenko@linux.intel.com
Link: https://lkml.kernel.org/r/20240403104820.557487-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Philipp Stanner <pstanner@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
lib/devres.c