From: Laurent Pinchart Date: Wed, 13 May 2015 22:08:34 +0000 (+0300) Subject: drm: rcar-du: Print the error value when DRM/KMS init fails X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e0c6e1895b9fff3cdb6ef746ee3d8dd4e852f40;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm: rcar-du: Print the error value when DRM/KMS init fails This helps debugging probe failures. Signed-off-by: Laurent Pinchart --- diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c index da1216a73969..780ca11512ba 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c @@ -190,7 +190,7 @@ static int rcar_du_load(struct drm_device *dev, unsigned long flags) /* DRM/KMS objects */ ret = rcar_du_modeset_init(rcdu); if (ret < 0) { - dev_err(&pdev->dev, "failed to initialize DRM/KMS\n"); + dev_err(&pdev->dev, "failed to initialize DRM/KMS (%d)\n", ret); goto done; }