]> git.baikalelectronics.ru Git - kernel.git/commit
linux/phy.h: add phydev_err_probe() wrapper for dev_err_probe()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Tue, 14 Jun 2022 08:46:11 +0000 (10:46 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 17 Jun 2022 03:29:06 +0000 (20:29 -0700)
commit5d0c1fef3337481c7279fb68d08b4916b747cafc
treea9b2b0b9a25e216dfaea9a1ee1be30d5fad5e058
parentfc922946bfe20a22afe8977ad9d67fa73b7bb1c8
linux/phy.h: add phydev_err_probe() wrapper for dev_err_probe()

The dev_err_probe() function is quite useful to avoid boilerplate
related to -EPROBE_DEFER handling. Add a phydev_err_probe() helper to
simplify making use of that from phy drivers which otherwise use the
phydev_* helpers.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/phy.h