[PATCH] drm: rcar-du: Use dev_err_probe()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Replace manual handling of EPROBE_DEFER with dev_err_probe() to simplify
the code.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@xxxxxxxxxxxxxxxx>
---
 drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
index 1ffde19cb87f..91095f9deb8b 100644
--- a/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c
@@ -701,9 +701,7 @@ static int rcar_du_probe(struct platform_device *pdev)
 	/* DRM/KMS objects */
 	ret = rcar_du_modeset_init(rcdu);
 	if (ret < 0) {
-		if (ret != -EPROBE_DEFER)
-			dev_err(&pdev->dev,
-				"failed to initialize DRM/KMS (%d)\n", ret);
+		dev_err_probe(&pdev->dev, ret, "failed to initialize DRM/KMS\n");
 		goto error;
 	}
 

base-commit: 85d712f033d23bb56a373e29465470c036532d46
prerequisite-patch-id: 74c948ef7587221bcc859d7e0b38b54b7c404163
prerequisite-patch-id: 41d31c65b9895beb2f15c1dd2b89e435657a639c
prerequisite-patch-id: bd71c64e0d7f9a6a5212ef9ad499fb7cdc718425
prerequisite-patch-id: a01de55d9563b98ab2d86d78db436da198bc4649
prerequisite-patch-id: 2faeeea13f349cae2470b09926ed52e5743f1579
prerequisite-patch-id: 783a84269c3d66600ec31046bee76e2aabcb32ad
-- 
Regards,

Laurent Pinchart




[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux