[PATCH] driver: implement dev_err_probe()
Sascha Hauer
sha at pengutronix.de
Wed Nov 24 23:50:03 PST 2021
On Sat, Oct 30, 2021 at 07:59:26PM +0200, Ahmad Fatoum wrote:
> The function like it's Linux equivalent is meant to be used during
> driver probe whenever an error occurs that would lead to aborting the
> probe. This allows moving EPROBE_DEFER checks out of drivers and
> in future could allow selectively compiling out only error probe
> messages, as they are mainly interesting during bring up.
>
> Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
> ---
> drivers/base/driver.c | 49 ++++++++++++++++++++++++++++++++++++++++++
> include/linux/printk.h | 12 +++++++++++
> 2 files changed, 61 insertions(+)
Applied, thanks
Sascha
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox
mailing list