[PATCH v2 1/2] drm/panel: panel-edp: Use dev_err_probe() to simplify code

Doug Anderson dianders at chromium.org
Thu Sep 29 21:06:48 UTC 2022


Hi,

On Wed, Sep 28, 2022 at 6:56 PM 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>
> Reviewed-by: Douglas Anderson <dianders at chromium.org>
> ---
>  drivers/gpu/drm/panel/panel-edp.c | 22 ++++++----------------
>  1 file changed, 6 insertions(+), 16 deletions(-)

Pushed to drm-misc-next:

b28d204a7c19 drm/panel: panel-edp: Use dev_err_probe() to simplify code


More information about the dri-devel mailing list