drm: rcar-du: Replace DRM_INFO() with drm_info()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Tue, 30 May 2023 09:20:52 +0000 (12:20 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 14 Aug 2023 10:47:29 +0000 (13:47 +0300)
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@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c

index 1dd722f..ec3cf23 100644 (file)
@@ -710,7 +710,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);