aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2016-05-24 20:40:26 -0400
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2016-06-20 15:31:31 -0400
commitf32133a58a7cdba6e8e669870ca5c370f88656f1 (patch)
tree1a60beddb672e79721af4aeb6e4be57d42342a81 /drivers/gpu/drm
parentfef1ac57af386a857f1cc055faeee7594f5310f8 (diff)
drm: rcar-du: error message is not needed for drm_vblank_init()
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>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/rcar-du/rcar_du_drv.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 48ec4b6e8b26..604720629b2e 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -339,10 +339,8 @@ static int rcar_du_probe(struct platform_device *pdev)
339 * disabled for all CRTCs. 339 * disabled for all CRTCs.
340 */ 340 */
341 ret = drm_vblank_init(ddev, (1 << rcdu->info->num_crtcs) - 1); 341 ret = drm_vblank_init(ddev, (1 << rcdu->info->num_crtcs) - 1);
342 if (ret < 0) { 342 if (ret < 0)
343 dev_err(&pdev->dev, "failed to initialize vblank\n");
344 goto error; 343 goto error;
345 }
346 344
347 /* DRM/KMS objects */ 345 /* DRM/KMS objects */
348 ret = rcar_du_modeset_init(rcdu); 346 ret = rcar_du_modeset_init(rcdu);