Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp1343707rwl; Sun, 26 Mar 2023 00:10:09 -0700 (PDT) X-Google-Smtp-Source: AKy350Zgu8hKRostJYIu/8GMhj9dZazwaD5zTrDg8jEPFvup/kbsDB1dmS3yuWpuww6Znm/18WBh X-Received: by 2002:a17:90b:38d2:b0:234:dc4:2006 with SMTP id nn18-20020a17090b38d200b002340dc42006mr9172739pjb.4.1679814609729; Sun, 26 Mar 2023 00:10:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679814609; cv=none; d=google.com; s=arc-20160816; b=KW2BdtoXaCMpuhSFqK8mKAxKLgbhyGdMfvnD37NIeCWy1jV/TM0vTJVH3GKLlFNB3C 3LPMEYyLJTE8CSbu6AAMpEuUB3KrwMwHTWF3vdinWvmXm1kI0VuQCdYXkX3Qkh/51pCJ dxzqFCaXzUM2Y9i08mtmyC+AZ5zIZ41J+VbYS7RSZJdCtDYrtdM75xKwhInv3S2qWDK1 laUVss5dFae486cyupQSsOku8Q0v+y6QflaTsWz3KQHAQmhAu7arF7+3Zq3DrWD7doW7 wTFHGhP62OsYBwCqJLThaIbzLIUOc8DWgLt/etcNtDpeV2gdd80Fnzp7o7OqjBRqoUsP Hgnw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h12-20020a63574c000000b004fbb2e0e958si23519724pgm.736.2023.03.26.00.09.58; Sun, 26 Mar 2023 00:10:09 -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 S230123AbjCZHGu (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 Content-Transfer-Encoding: 8bit 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 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)) { -- 2.34.1