[PATCH] drm: rcar-du: Replace DRM_INFO() with drm_info()

Kieran Bingham kieran.bingham at ideasonboard.com
Wed Jun 7 19:08:39 UTC 2023


Quoting Laurent Pinchart (2023-05-30 10:26:39)
> drm_info() adds proper context to the kernel log message, as it receives
> the drm_device pointer. It is thus preferred over DRM_INFO(). Replace
> the latter with the former.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas at ideasonboard.com>


Reviewed-by: Kieran Bingham <kieran.bingham+renesas at ideasonboard.com>

> ---
>  drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
> index 91095f9deb8b..fe4d3b3c9b0c 100644
> --- a/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
> +++ b/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
> @@ -713,7 +713,7 @@ static int rcar_du_probe(struct platform_device *pdev)
>         if (ret)
>                 goto error;
>  
> -       DRM_INFO("Device %s probed\n", dev_name(&pdev->dev));
> +       drm_info(&rcdu->ddev, "Device %s probed\n", dev_name(&pdev->dev));
>  
>         drm_fbdev_generic_setup(&rcdu->ddev, 32);
>  
> -- 
> Regards,
> 
> Laurent Pinchart
>


More information about the dri-devel mailing list