[PATCH] firmware: raspberrypi: Use dev_err_probe() to simplify code

Florian Fainelli f.fainelli at gmail.com
Sun Sep 25 10:51:18 PDT 2022


On Sat, 24 Sep 2022 02:50:41 +0000, Yuan Can <yuancan at huawei.com> wrote:
> In the probe path, dev_err() can be replaced with dev_err_probe()
> which will check if error code is -EPROBE_DEFER and prints the
> error name. It also sets the defer probe reason which can be
> checked later through debugfs.
> 
> Signed-off-by: Yuan Can <yuancan at huawei.com>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/drivers/next, thanks!
--
Florian



More information about the linux-arm-kernel mailing list