drm: rcar-du: error message is not needed for EPROBE_DEFER
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 25 May 2016 00:41:18 +0000 (00:41 +0000)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 20 Jun 2016 19:31:41 +0000 (22:31 +0300)
EPROBE_DEFER is not error, thus, error message on kernel log on this
case is confusable. Print it only error cases

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_drv.c

index 6047206..c5b214c 100644 (file)
@@ -345,7 +345,9 @@ static int rcar_du_probe(struct platform_device *pdev)
        /* DRM/KMS objects */
        ret = rcar_du_modeset_init(rcdu);
        if (ret < 0) {
-               dev_err(&pdev->dev, "failed to initialize DRM/KMS (%d)\n", ret);
+               if (ret != -EPROBE_DEFER)
+                       dev_err(&pdev->dev,
+                               "failed to initialize DRM/KMS (%d)\n", ret);
                goto error;
        }