From patchwork Sun Mar 26 07:06:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 75022 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp798696vqo; Sun, 26 Mar 2023 00:13:25 -0700 (PDT) X-Google-Smtp-Source: AKy350bleYAS6RjlIKJ00OwLSn8lNOF79BjxZO6XOfp9SRjRp269RikbEncdEs+fNDRrCyMXMirU X-Received: by 2002:a62:2581:0:b0:628:1b3:d499 with SMTP id l123-20020a622581000000b0062801b3d499mr7389428pfl.21.1679814805546; Sun, 26 Mar 2023 00:13:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679814805; cv=none; d=google.com; s=arc-20160816; b=YBt4Z21fQZ3Qn6oEcfKhNVjBYJkfo7bR8ipazmmHdkJv/h6YAAqu4dkKVJdP/H5maB ok2dhspJLqeMt41aYPrOsZu0GdsGJeiI3JKX8SpE+u0lw9d1FW4CrDsNnwKKA8VW1YNm 9Y2WHzscReQTV+XFjlboLlYLNhPDyVT3QIqr16q6dOKe1Ksng4A6ugmzYoivwYT4C+aQ Bl2o+A39nqKG0mZ9NPuIkrwZEejVIBtWyeMJZM9BSKIVKWzawXUXhX81E5YPFZ0FSC7p zR9O5BH396PVdcmUF4H+SDMeTPG+MaUFLRtsy0ez0hui7L9pHkd75x3Duu6hrRU2evjX aaVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=mmvzC8PmscJX9DAu4fi3v32qIjF/f8ROO/LJ6VTFJBU=; b=cyIHTtxwC9iQfQIVa0iVlkP/ttgZ2tVY04V9b6FZHPpNJ/Idq9LPceqEXHh2r9UVzJ lwvElEwM8kQLrPiVkFk1VOqnGCd75Dndpldw+snwecGuqerw31F7qrHwg/2m0jfyiQ9c KrqhZC29hSvqgw8y0xn6VthX77w9sE+OyD5exLogstHUCGD1YEZO9OcPvVEzgh2qdb9j amDIHmC35RaZI2goRlx5eJz5W64FoWFxI1HQjdbXom8gH5F2cDRY/AgskpMivLQFjs/t 7Fj61XfEuVJLZ/6JYYGmMw292lh4oB8fgB3cA0pcOf43AnbQcnflGW9ZDoGFQOWB3YY/ U8KQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f21-20020a056a00239500b00625c54f17f6si23750764pfc.141.2023.03.26.00.13.11; Sun, 26 Mar 2023 00:13:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229716AbjCZHGu (ORCPT + 99 others); Sun, 26 Mar 2023 03:06:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjCZHGt (ORCPT ); Sun, 26 Mar 2023 03:06:49 -0400 Received: from smtp.smtpout.orange.fr (smtp-18.smtpout.orange.fr [80.12.242.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAF6449F5 for ; Sun, 26 Mar 2023 00:06:47 -0700 (PDT) Received: from pop-os.home ([86.243.2.178]) by smtp.orange.fr with ESMTPA id gKSipZ5u2E500gKSipnFEo; Sun, 26 Mar 2023 09:06:44 +0200 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Sun, 26 Mar 2023 09:06:44 +0200 X-ME-IP: 86.243.2.178 From: Christophe JAILLET To: Vinod Koul , Rob Herring , Gregory CLEMENT Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, Christophe JAILLET , dmaengine@vger.kernel.org Subject: [PATCH 1/2] dmaengine: mv_xor_v2: Fix an error code. Date: Sun, 26 Mar 2023 09:06:37 +0200 Message-Id: <201170dff832a3c496d125772e10070cd834ebf2.1679814350.git.christophe.jaillet@wanadoo.fr> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761413489616258275?= X-GMAIL-MSGID: =?utf-8?q?1761413489616258275?= If the probe is deferred, -EPROBE_DEFER should be returned, not +EPROBE_DEFER. Fixes: 3cd2c313f1d6 ("dmaengine: mv_xor_v2: Fix clock resource by adding a register clock") Signed-off-by: Christophe JAILLET --- drivers/dma/mv_xor_v2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/dma/mv_xor_v2.c b/drivers/dma/mv_xor_v2.c index 89790beba305..0991b8265829 100644 --- a/drivers/dma/mv_xor_v2.c +++ b/drivers/dma/mv_xor_v2.c @@ -752,7 +752,7 @@ static int mv_xor_v2_probe(struct platform_device *pdev) xor_dev->clk = devm_clk_get(&pdev->dev, NULL); if (PTR_ERR(xor_dev->clk) == -EPROBE_DEFER) { - ret = EPROBE_DEFER; + ret = -EPROBE_DEFER; goto disable_reg_clk; } if (!IS_ERR(xor_dev->clk)) {