From patchwork Wed Jul 5 08:18:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 116020 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1717613vqx; Wed, 5 Jul 2023 01:37:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7x4twLqRGCEFUgllD4jSg6AwDYftQZ4MHWx3TyacP7h6f1ZnPOkbZ6yYBDeVCpcfQOQ+hG X-Received: by 2002:a05:620a:22ea:b0:763:e407:4eec with SMTP id p10-20020a05620a22ea00b00763e4074eecmr14331643qki.50.1688546238089; Wed, 05 Jul 2023 01:37:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688546238; cv=pass; d=google.com; s=arc-20160816; b=t9qkbvOftbWUtb1ZG5MnDk7h81SPopRvqIv2hxLL3TDzROnFdNA15qe2RVraAT66hf f5WaLqmxeUXcQDbcpXDUQVnkrieaKE/8PVnP5X0E0PE60xm8+/IVnHNTwbnpbuo5r9cJ cJoiwe1IhOa3Oo89802OwgKCabNYIdw5kkpaForSDw/E1FJhRAjTnF9fj7RzscXLuF5a LWsaftWw/EHIJnjD/mi4RJUYIsFNR1nIIhXP9SH0Er5Yr8lSOU1dNz44Hbv3EGg7MHf7 PYpXgskzBkTj3c5Vm4gDAn34eXCVmw9d2lU8ZqwDS6/yPqEmQjzhkhEhnBo/WB+ej5wL +hgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rFAjjT8+kNbUdbkIoD6wpN24vp28qG6AZ/yOH7wdkVE=; fh=+UiOGVW/EyAFgQSg3J4sSsfrW1NUPAQQkqnOdekd514=; b=crTmoFBNQP3EnEm3vb80vtDi1FSUIR5NDMn2GbVBtwpXPtBiG8XYJNZjWIyWR/MJ9F ZMsyF+alfFG0nUL+Kow9BJhMqN6AhSAh8PBVrkaPR8UpHhT55cGM950rwPbZ8kPkztQn PvvyBD59e3kdsN0xpY9YygvkW6o0hTrMImNM9LPXgOsgoQKA/CpGfGVHk5ilHh5bDjS8 MewDePm9sDffaYgIH6rS3g6e14JOsp/k8BL8KFBnn+WbAyEFOo13JQ9xF5xsEDzXvTVq sTYyg4z8sKAZNK4zImcRI1DtgI9MAPetruOSuh6RpxSG2KgS6AiFcnzm910v5jjS5zxO RduQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=aiHO0oAq; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp12-20020a056a00348c00b0067dac801f59si16452683pfb.224.2023.07.05.01.37.03; Wed, 05 Jul 2023 01:37:18 -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; dkim=pass header.i=@vivo.com header.s=selector2 header.b=aiHO0oAq; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231514AbjGEIVW (ORCPT + 99 others); Wed, 5 Jul 2023 04:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230236AbjGEIU7 (ORCPT ); Wed, 5 Jul 2023 04:20:59 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2072a.outbound.protection.outlook.com [IPv6:2a01:111:f403:704b::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A3A9171B; Wed, 5 Jul 2023 01:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WJftutNMve+utjmok8zQw7jn0dMsz6jCFNUnDD0zYQre5DZxkGDOZyXrI2jHNtkyPheCRkw+c/veWVQ/D/o1po0GDfzfrN6+ngbFsVHeaUmVJIEXfig5ycXvghh2SVrk3jHW/TPrVaRxUta9olw8qorSSO9ue2UiE9tJ2+6Qt4D4J+DKJpE1tfMNGGQJTa5ANbXdVihu2pWPPLFChhEz1FRKydZrE2+T0LUoA59hn+fO2MkhwiKepTtoE6zLDczwZeCI3q6oHiWvsG44lgN4IsvG4I43AxNeoxUm/KKj6JojRdotEm2jlnQrxtdBvrl5jzKHUNzDMbZXVUDlYzCWmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rFAjjT8+kNbUdbkIoD6wpN24vp28qG6AZ/yOH7wdkVE=; b=Ey6WW3oC+IpLTlPi7hEkJ5G5LRRWTGyIGbcJZlivKjMOuVEDHJFU+jAl7dS27T9q83LA/DaTLKLYwk7egsqhe+mFiuO5blSkbqWk7DE5G2Ogng41aQyxqCxuMV0z6jdiZImLJhcITgqbsY+cYArY0OFrI228Xkn2hLfT05XYgFs8ADYnn+ozD1EAeJseLtwLOu5+H/RW8s11dUBIKMCk5wrEOkk0fE8x3/Ss1ViRu+UkVxvn+BpM73Rf3kDCwPRk7DhOdpal3+01EDtuyRQ52pc4GvK+2mKxAG+a8MWnISOMItPeFMh7Nt7U2KkY+2nytXa1bTbVVXeVES6w2cTLaQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rFAjjT8+kNbUdbkIoD6wpN24vp28qG6AZ/yOH7wdkVE=; b=aiHO0oAqmHwKZAaE7R992vDG3pGtUo3w8AgMGBJjeVXTB4I5i2oEwF7JkE/ASAmBBY5w14h+2Lcg6XF6+EmItWq3Tmx5EM2ppGgxBW1SeaG5aVyRCCmyaDWumViCuVHEwBkAgju5tuwqpPHBWbOXHDidfUW55/fuAslzMGhHV0gU960V3KaD5QG4+s/ejcQtYK8tuwJYM3eLehQ+h8yeWv7Ci6GjQovNvbSoD7yyHnBXwsdY7ZZLVzk1lWPp0Rio5N4nQL48d5KKuCzP+jDnLEwwDMPmIixoN+Tf5S1/g22DydGjd4GdcjzVdGZMs6tDpfBdXhIVdimaWPT2wtx4ig== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB5119.apcprd06.prod.outlook.com (2603:1096:101:4e::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Wed, 5 Jul 2023 08:19:16 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.016; Wed, 5 Jul 2023 08:19:16 +0000 From: Yangtao Li To: Vinod Koul , Maxime Coquelin , Alexandre Torgue Cc: Yangtao Li , dmaengine@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] dmaengine: stm32-dma: Use devm_platform_get_and_ioremap_resource() Date: Wed, 5 Jul 2023 16:18:56 +0800 Message-Id: <20230705081856.13734-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230705081856.13734-1-frank.li@vivo.com> References: <20230705081856.13734-1-frank.li@vivo.com> X-ClientProxiedBy: SG2P153CA0044.APCP153.PROD.OUTLOOK.COM (2603:1096:4:c6::13) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB5119:EE_ X-MS-Office365-Filtering-Correlation-Id: c45f17bd-14bf-4038-a33c-08db7d308629 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DA3+LGi/tP6hzixr5UEnuPK5SHCiLzdWM7hyIRpNc/65SZdFGb83d0PGpX3zoovmv+V8RqW5CoHGe9i9ljWaAdM9DusSHYlFrX9Ton5tSz/jhFamanDKeD4bu3AFwfKQ/vbxAcl6mVYcEmmNgtLihciXg4Ni4bGV2+gGYcy48+RMjW1d/H4rrnA/NCh6blg+ZmfaSBI28svv+lhaT5Q9hjmcXC/mSbr+cnDi7wsgP9isSDAdR1cRHNr4GuchZqv2mredmBG+YYa21bPT4t1BOS9vChUtCX2Z4OZSdu1wO81PZLgMvsij+Pa3XV6WwavqMNSM+Ow3AMuFMEuG0f5pwbHz3G+wofYzGlw5EqLRXYJyK57KNKpz7BO+hZo4/rDFeniAGtHYH1KaO+QC/VpP7rq+5rc8jVsZkGsC6divZ8xDoYz6MKgI00t+LY1AYYeEveQmQKUZUZYEhbeeJI3sKzC+btmHVvzoV/9dHmoGC/orSEWjp7nSPELUVV+Q+tYmLnmAnvovFYC8yNN4WBdOfCgN/YSmD88Fyv7ebfG6bQIfGNMl2eNI6ONPi3WOFnWqgxjic9/vRL81rjKYkCqX72Rul3pdyJeNe11PA4JoO4ZCUiJALrVwndhwqXqPacWa X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SEZPR06MB5269.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(136003)(346002)(396003)(366004)(376002)(39860400002)(451199021)(316002)(2616005)(4326008)(4744005)(66556008)(66946007)(83380400001)(8936002)(86362001)(52116002)(1076003)(2906002)(66476007)(5660300002)(8676002)(41300700001)(36756003)(6486002)(6512007)(186003)(6506007)(478600001)(26005)(6666004)(110136005)(38350700002)(38100700002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: VagdK06blecNeYS2mQvfZk7/zEELVpKCrbQU4p+i962dKAbLyj1nry06BpGNTlqd4da1FZ3h2hvZULg93afy7wWzXW2mH2g7qYi+kQcPqUh1pv7Uc4/4DCzW9RS4H+bbvXLnI03IL1qnecFAJz1HWi/NyDqdKOsLOsYgXE1rManRcuFL4D9V7iaQQGkMxj+njbKsAuAi6HrH1XsZr5t/XWkVmnY869vsA65NhOk7/zPNgPdavspZ7EzotLH2LPbscrmpZ6iw6sZtKpga6DHlw6YIOVsDVA+LotwprYAlWNrz1lE3cFrLbOHxVGITxbTcFTlJbiSkOrcODWs8kuxMTNz6onDMErjWh2X/d9KRk3WYuV5QxhAI/qHwOqt73oviv6IV8uH1jg4PFkqC4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KOEJjXpVfCpqOVb90Wc2x/BLD3cGXF4L5SDQJn9vSy/qfJA2+IsJqWF4XD+2srZvacsrIXPOuXKVfgnzxjx5MQFdBeUr09aikCQhtcjRm68A+VZmOx9iH8Mt5i1d3wiV2so X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c45f17bd-14bf-4038-a33c-08db7d308629 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 08:19:16.8013 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: /Yr5cXIvGTVjrNE6O6tKKkmTfw2n6FH624ef1IgRUv/Sbdodlkm8AZAyJqoryPoEgZp+ByMSCcZt+iyYuzT06A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5119 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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?1770569060049107100?= X-GMAIL-MSGID: =?utf-8?q?1770569060049107100?= Convert platform_get_resource(), devm_ioremap_resource() to a single call to devm_platform_get_and_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yangtao Li Reviewed-by: Amelie Delaunay Tested-by: Amelie Delaunay --- drivers/dma/stm32-dma.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index 37674029cb42..5c36811aa134 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c @@ -1581,8 +1581,7 @@ static int stm32_dma_probe(struct platform_device *pdev) dd = &dmadev->ddev; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dmadev->base = devm_ioremap_resource(&pdev->dev, res); + dmadev->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(dmadev->base)) return PTR_ERR(dmadev->base);