drm: rcar-du: error message is not needed for drm_vblank_init()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 25 May 2016 00:40:26 +0000 (00:40 +0000)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 20 Jun 2016 19:31:31 +0000 (22:31 +0300)
The only reason drm_vblank_init() could return an error at the
moment is a kcalloc() failure.
So we can remove current error message completely.

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 48ec4b6e8b263edbb814d509bd1bdc27a8ff83ce..604720629b2ec8069ce63c5c1d14b5433ba10bbd 100644 (file)
@@ -339,10 +339,8 @@ static int rcar_du_probe(struct platform_device *pdev)
         * disabled for all CRTCs.
         */
        ret = drm_vblank_init(ddev, (1 << rcdu->info->num_crtcs) - 1);
-       if (ret < 0) {
-               dev_err(&pdev->dev, "failed to initialize vblank\n");
+       if (ret < 0)
                goto error;
-       }
 
        /* DRM/KMS objects */
        ret = rcar_du_modeset_init(rcdu);