From patchwork Wed Jul 5 08:18:52 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: 116023 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1718087vqx; Wed, 5 Jul 2023 01:38:34 -0700 (PDT) X-Google-Smtp-Source: APBJJlG6c3wx75KIErmYmiiPi/xg6ZM76q4LU8dwAYNrZMjudmhMc38/xViXLe49pRxdjyTkNdLc X-Received: by 2002:a17:902:da92:b0:1b6:c229:c350 with SMTP id j18-20020a170902da9200b001b6c229c350mr19809430plx.18.1688546313839; Wed, 05 Jul 2023 01:38:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688546313; cv=pass; d=google.com; s=arc-20160816; b=pGBYNs0ugVEJHScWtIADFOcJJjADeEFgjZsoxvtyX25u/oWwuntnE4kmRmUueqlaqn iFtp3IV2P6LRszmYQNITZ5IXLRLTl5YpD64eUmp8Ka6TYsdBaPszJMaYbJv7S42FaGWq eY3dzCQWC+uaWaE0oSCpphA5bDM8FC7NXt0MdI8gp+bNv6OWIZNGJFGpCTKjrppP8m+C sC3bmaybQkrrWgv8Wg/DD6UnidHd8mxbuZoRPFbXCgXq8z3vbVT1OUPmf8MyS9R4cYYk IdQPPTTV/NfkefHHrn7D9Y9HNhh+pnh4l2c3nWIvgHLo8ar6E3qctRabLHg17B/goAaU IV+w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=T7Vww+uljA+7/ozUpZTG9yhuuIePwV2weGLL55fyFuI=; fh=0I6ED57fuw6YJWxGgs7h4+J1y7+QO/dsHVMEK+um3eU=; b=c+ZKmX3q+R7JEjB2IjRE5ZGzfB7KaNhH+035ufYc6/Zk2RKJM85h6yqLnWvlDFb3s5 vfhebXxLx4PvIpV9CGTPIJVqd5KeHSrirQZ7Y1pZIgwWAL5ThDPa4yetaWc8SbP0DaVV HKXQ5eOdHKGnxr2oS/ivl1CnblkaWDqNBvrVpVXQ04AKlGbdiW+7moNrkHS9FXyqJewv KSDw8BkTwzEs6x3nmjdpYC2PIx+0UaEJK65Iy4MDTWEz+8dtHzRWr3+69KRE4Fw963gm sJxFyXQQ+SU+UeLLWryGy//xxhzyql2ckUgu9/KsuZ/35t36g8fGBm1ub0W2z7tiZA4A vRvQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="LnT5muO/"; 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 b15-20020a170902d88f00b001b01276a0bcsi21745497plz.51.2023.07.05.01.38.19; Wed, 05 Jul 2023 01:38:33 -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="LnT5muO/"; 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 S231851AbjGEIVZ (ORCPT + 99 others); Wed, 5 Jul 2023 04:21:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232415AbjGEIU7 (ORCPT ); Wed, 5 Jul 2023 04:20:59 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2117.outbound.protection.outlook.com [40.107.117.117]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 50209171C; Wed, 5 Jul 2023 01:20:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oWGNPELUWRnYFbI0Hh5Qf+GWV8rtx07ongSKhTfTozOs+inps4dNt350jon8bkhROHyP971rtTOYix/ZIc5/4X4V/yo9DazNj5HGIIXTfdjhJvbT8RCebmjW0UKAUF9F0MKKRJ96bOr0PQ+LFEJOp021+jsLU4AjRWrbXrWMb1rsTSZ5KLhfd/QTdUoxEHN9RJMODmlMn8id/t8PhK0q0uCOR8VtR8ILDzPK3Zd1IyJdLEIVeCGuCZxQbIpKVno3egIZuGYGnXCzy5CR1kUk25er+ESQ+8XngIq5Z6jVDaVvfDpRWxKfhCZLHE1lzheDmzD5c95j6k/LUo0kN6ymMQ== 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=T7Vww+uljA+7/ozUpZTG9yhuuIePwV2weGLL55fyFuI=; b=WLWAaISfieyx38+6Ks4ET4IzK48sxjNfsSQy2hp8SHjNikTEqgAkahXKihrDlJTuTSfF3uNZ9cPLPUngjdrxuqlyLMIkC+psn2e8C7iM55InbdFQMeaqsJVn++E5VeXxa1xG5e8uH/zmF7f7wueAByQbdYAHvfphmE9XFndF2T/rCu6SzTWihSu46+DcN334VEpl+Ro+r9kmgxXUP7CBOuuzQPyCYxck/Fdqpm1gV2nc/MyvXU1ietLBwNB+XxdnM4Wf2KMB0/U6DVqU68aRXOGZ1ZPvw9myEJ+xp6mnlMYihg3yP3QDYdt4jWJWijNLIglE3PPFDxZ/MKllrXNH0w== 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=T7Vww+uljA+7/ozUpZTG9yhuuIePwV2weGLL55fyFuI=; b=LnT5muO/pcB3Ho1b95IJSPg5/0pKFv++XttDEC0zm82uX1mlg7EZeldBdNVrf0xAPnAeaqKUQoVqXKNsYyTYOQlQebIsGxtkeAf1esN1Kx/+hPHcubOIxvQWx7tgRxQ7QG4uKHij2uGbSrs4uHEx1Zp6byLkhj8auYSqscP0KwpZOtqAhqlXrlhcz1VW6zIhbCCQt4izHvmWN1vPhi+sXjr1Ab+a66wWXGrDzQ7M6vkY0vJ2QIOCv3Qb3XSdxr156dbDlV+HGe4VXzDBzv3mnnx902KjhDfsE/vtUoRNI3ShpwfO5h+kc7vlCxOs8SBSBLMIBsgLc29o6doPOnJ17A== 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:08 +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:08 +0000 From: Yangtao Li To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul Cc: Yangtao Li , linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] dmaengine: qcom: gpi: Use devm_platform_get_and_ioremap_resource() Date: Wed, 5 Jul 2023 16:18:52 +0800 Message-Id: <20230705081856.13734-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 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: 6814a75e-4730-4f75-fa7e-08db7d3080ed X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KD4XhruT3EKhq4/oyb84A6mIwc9wuTm6QAOYojnoNHWEPFMiO+m/aVm0CW4w2U/FKef6+SAYG2ABAhBan7Lzdn5IgnvdLLJozaGxC3UEuIdVWGsEZsnD/a1B6x1woBMAYxmo/+MTCusweu4CAICLA1LidXm1cJR43I+gnKkWBkNW84pRa9jPV4zS1JlEmPjSEhodsTNNLBPFOuTh1QnzxgDTP/ZjjynY/fuTTjaLY/TJTL96kCPN1CzktXFLanxNeDlOjDDoIaRElFRbYb/71GhYebvfscCNFrLrEryQxpKXUWn/ZqiGehpYtMPXzupskhyGrKIIArR72r60tl660CnJhpCPXYOZgbxVhMMCrTS2BGfFSLrlAmcuz+3zxGsYf9KCsXIneZrmROo9SfamVREL6CKYtdgC5wlJTFbMs+LubncwCsIm7lKoRavdKdX25+GbeIuFGcexrj3MeD0sI/EoCR1epb4y5Zlc3XSSG1I9poYk2LngRhg+IC2KIEGo0bLWShpU1gBQ+BDap/QNvdDgVQl5YV3Mms3BrznHuh0NUQf5M3pMY6V9Ai4ZcrjBArI1UddopGqsC5pmzWNuMvEnGaPD8bN3reOOoElVepX28tx1UnpH4RLSZCuf9vyE 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: t6xN5XHeq3cwmmEjsfguWT61DI5lvyWlROZOZJTZrpeH3cL2gGmz1GBZ4C/9+Z6MCB7tXju20GTNWtkh3OdPjtPTjxpDyR3Of113oFb8yJ5fYwSXpgzekSstD548d+V7g+o1htkafDVV1uI7dEQ1ZVtL/VpiX4/ZCX/M+/vK5VtrXuSI1Ut1XX0wWMEGN+IsMn+cMfiay03nmeKP+VdfWnBQp1HedAeROqiabgODl8+Uyh2BsHtFU+d8Y5JAkd6u2jPN+iC0QbE0/Q4w8VSriAhHVe7UQd5sAsNUd5+VgQLcC6kUSfkeVbfhiwatWc+TCP5DaQDRB0KhM/zTWOyipoChx6Syd130Xb8XEuf4O5ijMPx24olHPkZOreZ6cRo83xr+oMAqaIDmBNA3gKoVvA/w44SzEGicmpMN62nh2qsaUWhqGYAUDAIzpjKEkuYPeZ4rRTGjVAbJ2zAhhQeE9yUxyWH6DIZbILR67b1ZonXMoiQj5ctlWioJpuCS9s2L0kXds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ginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6814a75e-4730-4f75-fa7e-08db7d3080ed 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:08.0263 (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: S3TMobqVYtLS899Y8Uo+WlcCrkVLShsdX0v9mj9c/yjFTD4spHm2RpamA5kf/BLFkj9KxNgtR8eHXO7I7rUN/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB5119 X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no 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?1770569139617575139?= X-GMAIL-MSGID: =?utf-8?q?1770569139617575139?= 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 --- drivers/dma/qcom/gpi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/dma/qcom/gpi.c b/drivers/dma/qcom/gpi.c index 932628b319c8..1c93864e0e4d 100644 --- a/drivers/dma/qcom/gpi.c +++ b/drivers/dma/qcom/gpi.c @@ -2160,8 +2160,7 @@ static int gpi_probe(struct platform_device *pdev) return -ENOMEM; gpi_dev->dev = &pdev->dev; - gpi_dev->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - gpi_dev->regs = devm_ioremap_resource(gpi_dev->dev, gpi_dev->res); + gpi_dev->regs = devm_platform_get_and_ioremap_resource(pdev, 0, &gpi_dev->res); if (IS_ERR(gpi_dev->regs)) return PTR_ERR(gpi_dev->regs); gpi_dev->ee_base = gpi_dev->regs;