From patchwork Tue May 30 09:26:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 13259596 X-Patchwork-Delegate: kieran@bingham.xyz Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1B393C7EE23 for ; Tue, 30 May 2023 09:27:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230233AbjE3J1n (ORCPT ); Tue, 30 May 2023 05:27:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230283AbjE3J1U (ORCPT ); Tue, 30 May 2023 05:27:20 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24904135 for ; Tue, 30 May 2023 02:26:31 -0700 (PDT) Received: from pendragon.ideasonboard.com (om126205206011.34.openmobile.ne.jp [126.205.206.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 000007EC; Tue, 30 May 2023 11:26:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685438769; bh=xyWNyLfZ4XMMC+JRf20PcpUZeFT54eA0T5pwZvOMi8M=; h=From:To:Cc:Subject:Date:From; b=hcgal3qzvMOVEXUXhheG63dfeAIILx4VcY8tCjF/i1xva6aSWwW4kVRxWzi/jhq93 mXxoq3U3WFWTOuy4ThzI3sDiwQx+2JG4g+J7LT3qk8dc/hCng3WrE4pNVkgU6mEa/v VaJVfbPdZDQEL9e/UCCCxDtrH+v0jpRC7gCpG4jE= From: Laurent Pinchart To: dri-devel@lists.freedesktop.org Cc: linux-renesas-soc@vger.kernel.org, Kieran Bingham Subject: [PATCH] drm: rcar-du: Use dev_err_probe() Date: Tue, 30 May 2023 12:26:29 +0300 Message-Id: <20230530092629.18329-1-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Replace manual handling of EPROBE_DEFER with dev_err_probe() to simplify the code. Signed-off-by: Laurent Pinchart --- drivers/gpu/drm/renesas/rcar-du/rcar_du_drv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 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; }