]> git.hungrycats.org Git - linux/commit
pinctrl: at91: Use dev_err_probe() instead of custom messaging
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 15 Feb 2023 13:42:41 +0000 (15:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Jul 2023 17:39:45 +0000 (19:39 +0200)
commit1a520b69582c9cb229ce2bb3a6295f214b42f7b3
treece0a09ab15c9b11023ab6c9dc19dd05b3330c142
parent534ce1a306ad9050c101bda1bf5335252e2d33ee
pinctrl: at91: Use dev_err_probe() instead of custom messaging

[ Upstream commit 472bbb2cfd6384fe4c4b956af2170c1225fe2a92 ]

The custom message has no value except printing the error code,
the same does dev_err_probe(). Let's use the latter for the sake
of unification.

Note that some APIs already have messaging in them and some simply
do not require the current noise.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Tested-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230215134242.37618-5-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Stable-dep-of: 35216718c9ac ("pinctrl: at91: fix a couple NULL vs IS_ERR() checks")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-at91.c