diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2016-05-25 00:40:26 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2016-06-20 22:31:31 +0300 |
commit | f32133a58a7cdba6e8e669870ca5c370f88656f1 (patch) | |
tree | 1a60beddb672e79721af4aeb6e4be57d42342a81 /drivers/gpu/drm/rcar-du/rcar_du_drv.c | |
parent | fef1ac57af386a857f1cc055faeee7594f5310f8 (diff) | |
download | linux-stable-f32133a58a7cdba6e8e669870ca5c370f88656f1.tar.gz linux-stable-f32133a58a7cdba6e8e669870ca5c370f88656f1.tar.bz2 linux-stable-f32133a58a7cdba6e8e669870ca5c370f88656f1.zip |
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/rcar-du/rcar_du_drv.c')
-rw-r--r-- | drivers/gpu/drm/rcar-du/rcar_du_drv.c | 4 |
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) * 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); |