[PATCH v2] drm/mediatek: Log errors in probe with dev_err_probe()

AngeloGioacchino Del Regno angelogioacchino.delregno at collabora.com
Mon Jun 10 01:08:02 PDT 2024


Il 07/06/24 01:52, Nícolas F. R. A. Prado ha scritto:
> Use dev_err_probe() to log errors in the probe function of all drm
> mediatek drivers. This avoids -EPROBE_DEFER return values from being
> logged as errors, like the following:
> 
>    mediatek-disp-rdma 1c002000.rdma: Failed to add component: -517
> 
> As a side benefit it also standardizes the format of the error in the
> log messages.
> 
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado at collabora.com>

Sweet!

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno at collabora.com>

Cheers,
Angelo





More information about the Linux-mediatek mailing list