drm: rcar-du: Print the error value when DRM/KMS init fails
authorLaurent Pinchart <[email protected]>
Wed, 13 May 2015 22:08:34 +0000 (01:08 +0300)
committerLaurent Pinchart <[email protected]>
Tue, 16 Jun 2015 11:15:47 +0000 (14:15 +0300)
This helps debugging probe failures.

Signed-off-by: Laurent Pinchart <[email protected]>
drivers/gpu/drm/rcar-du/rcar_du_drv.c

index da1216a73969ef62f062486734d5946082ee093f..780ca11512ba6cf138c593327186cdd7ab751777 100644 (file)
@@ -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;
        }