From patchwork Tue Jul 4 12:47:39 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: 115754 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1199573vqx; Tue, 4 Jul 2023 05:57:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlHp5xqJmyKVCAkE5hEgYJEnLvZPEHUSDgBhpKp+70j7ObKlVSv1hQqXpHz7BVzCCkGX7Ba7 X-Received: by 2002:a17:902:d2cd:b0:1b5:1b8:479d with SMTP id n13-20020a170902d2cd00b001b501b8479dmr17413849plc.48.1688475447359; Tue, 04 Jul 2023 05:57:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688475447; cv=pass; d=google.com; s=arc-20160816; b=ZJIbyWHyUKRkgPLJIybamPYbkj8RbwJw7AOIwOy30e5jV+DB6IJUIujqLvL6mg+SyM bk6aEEkkrwecjgg7vmsioBtbrN/gbttPEDG6rOYy3E3nPNIRF266V7yc8V3oif2YsyIk TYEpKnBYyssx2hXbm45RYqXPxzxqXd+FRm0ESBSsf7Utfm3xk6rlXIUy+VIq26UIR1A0 KEIr9fXP1j6sQtNpsJrdfNE3pGfWEPQ/pGjaRW/Art+6d3BW21tRvLtKVMlZSuwi/A04 oh85DpvWUzrVMsQTzJFF/kK4lT+ErTt59mRq36dozwkqlvOi7EPpEtoKDxzF3WUUkGln sbqQ== 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=qkleEjFxvlKJ1geHJ6emVpUGfYaJB6Ei+AHJ3cjNRCo=; fh=e4sSmt6EwDw6a3BfWpDvNtu8YvvpHqZdd5RPHpSXfK4=; b=hJVEb8iPJDL1nkvQWNH/++v9gnF9HOkczsvtZ5zsO7KBtY4bWS8aA1lSMkE2AdDQZq iTNWSxKgcP4wkSVoGaKD59blkpm1IkjfSh81l/CnKb2Az8PLvcCFiJx7qtERpE3693PK APAPidZAmQjzzMFDpczjZNJH+2aGC79k3QOCs2+olq1wcFl4Ue4ENyTzWSPgHgTS6Hxr SG+dR44BYIpBBrjCrJ8eE06CNybPsvEu0h3DDZRaB3hEPUHNbQJn3ZYfUVRWkSat++2O pYfjLwkR/6fHdgZ89aZ0pJz8LMtfGSTSShydRy7AR3DNydJzNlxGpOOVQrAXpDPCLq3u bwmA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=d8yhpTKA; 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 t2-20020a170902e84200b001b89b7f68b2si4099325plg.42.2023.07.04.05.57.12; Tue, 04 Jul 2023 05:57:27 -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=d8yhpTKA; 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 S231147AbjGDMsD (ORCPT + 99 others); Tue, 4 Jul 2023 08:48:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229895AbjGDMsB (ORCPT ); Tue, 4 Jul 2023 08:48:01 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2101.outbound.protection.outlook.com [40.107.255.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53EB6B1; Tue, 4 Jul 2023 05:48:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LqqBORPtkn/bkFKqXW3DqCd+t2m+u71Te4ysm4ayYiOfZVVvz3UkrBEcdqQQYb1cB1D24Y2I44EO0j7od7YNY0c6IwIGx2xoRCjGjxkRJ2p2bwdIf3NZSqmg4ySwFe5SNpxuXv99eM42r/k304FFaxGuKcZE9BeXGnIH5qlGXLN7+3eHDMy/lleMTlfwGC7HrUyuA2U/Pspk1Td4s2ArtfZTYtVcUyqXcGkIcf6jwu9JZnH93XL8hbuo/5NKeIHtwyEZS38HQKNVvEcbsnIx7NwHzrItiwIdkMqFG11e7B7DYbE+vHMb6rTU8w6Nr7TUjzuW1c1qxxCqxnudDMAlGQ== 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=qkleEjFxvlKJ1geHJ6emVpUGfYaJB6Ei+AHJ3cjNRCo=; b=ELQDn7Y0jjep20GJfTYqPenUFKiWIgnbeCLz73zkalSEeFSJIAjqgxFTzGm71Ag3hwK1vLb3o/jS2K1O+fbWzy3CEb+r+jMu/a6kbqo8YxtvYP0S2jaockQlhkqwnrofEZlMOFpy6K0egIsupJBQOXSkQUmEvWWaHOiqNw8qg/PebaJcZe4ZxP8HLNjE5Ksczah3wpioc2lSA9c01r31F1LNaQDAbbOPulyR4ihv71wxnFRiZYdW1hfgAltf0ykMB8fUC0aQ7boC1RP+TH96LGNcFq7gysiRQKQdwALvCDkNxP80ppIioUbb1b80fhmKGku/DZzscyGOo+WK9jki+Q== 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=qkleEjFxvlKJ1geHJ6emVpUGfYaJB6Ei+AHJ3cjNRCo=; b=d8yhpTKAharxCbmOk2krfClek0eXdcszjtYkkPQeaPpfDSwuqwNY1MoBOe/pENiI5JnGLS0UJExJUBr/JQ8tK5GLsVAV6QVfUS5BpckDXcgWxbhs2F4yUmtVQtgxfJsVN9CKNEI/NpijLlzELC2wPoU4RA0mJQRIDAIiySFqgu0pAA/uEl39gx5aMlpD/uQczqbIGGH83wa8a9Ri2OpdCng1R3WnVWbCRDqG+KONZX4wmb755dq1E6B7xrTSs677SJvDDIpB0DU3xAPfFHcrT+JOJuJDpq99lqfWZh0/f+FjHJpXUJghrs9fWcjxoGYaQogXbZF/hAiEaplhUH4KrQ== 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 KL1PR0601MB5679.apcprd06.prod.outlook.com (2603:1096:820:9f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 12:47:54 +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.6544.024; Tue, 4 Jul 2023 12:47:53 +0000 From: Yangtao Li To: Linus Walleij Cc: Yangtao Li , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] pinctrl: berlin: as370: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:47:39 +0800 Message-Id: <20230704124742.9596-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI1PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:1f6::10) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB5679:EE_ X-MS-Office365-Filtering-Correlation-Id: adf15599-e367-436a-b33d-08db7c8ce1d2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Qq79U3j58DtOwkjAC5Wg2AN3/dLD+zJjn/mvsGcJHiXvKHBqbhcqddIEla3sj1YS0TQt0H+RCJCoXkqOAw6+s1K8nKx/KN8T1EA00r1H2rH80P41V0RUDQ2/KLEcAbw5lu06lpQxh5+0WE8DwrNfXcdGMTJGektCsiFMXO0vqdM8aqep7hjp+nOsr/4ge3sSK/2UtR3IK9bmOAxGLYmyL3ZPeB5ZAlFKyjONYSWu7g8zpUeskIWUhnURCNy6i4G8npASsMUMJHVNYjzI+SgiTMhOBFKkyXh57TEqeuvLmcWRszX7rZdXCZ8/21SnnuDfuQHZuT7qJ/IH24A1Kv7unPWrMQcPmPvWeexumKK7M3Ag80UHvHVOm7bvn3x2eIVe6tJl41/I6r0TVD0HB2A6/MmncJIz/npbrm/bsWpR0clyYZLGY2DR+a2ZbLnFlc34r00840ADyNcXx6XINimUJ1HNgWvBHGSQw9A2UqZcShsUcQhvsaqY/ECPBGodEMiTUid3vp9HBsI2pV/pJmVeOmWpEK+dxGOHRSQJUbUGZix5LW7C2Vl5mHP01ZbAD4Pdb2xVar3J2sQ1dGqWwdpl0th9EK9HqUNY+12cnhAa7Ufot62Guem2GqTOj97KJ8o9 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)(366004)(376002)(346002)(396003)(39860400002)(451199021)(1076003)(6506007)(66556008)(66476007)(6916009)(4326008)(66946007)(38100700002)(478600001)(41300700001)(38350700002)(316002)(2616005)(83380400001)(186003)(26005)(6512007)(52116002)(2906002)(8936002)(5660300002)(4744005)(6486002)(86362001)(36756003)(6666004)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 1+aGWESsTJ0H0FoZBjSnv6BSwm8qEaaHxf3xkDeO7fXAbFAK3BH6LPglW+jLKN0adwM/JfI9znvivZg22Rjk9VcqQ1elG4apYsZzHQrv65GaHDdwoED4ls3ScvioWGwxpkLP0RoQ5sUWKnzCVJRTi9BtbJ+Lu6wal1uiYrbxOejYU8bbY7Iko4Iv3d0tinLV5j86j/JJFI8+0xZrR7SfXX280S1P54pQJS7sKesBPBVF/B4BSfHhkyP6Uc12q/5l7S8IFz0Lca941KwXRxIV7HZ759qCIjzXuIcjynv7lO+BEgdEDebOuRkFqlMtyPLUI2KR8Bmau5JE+HwuUx1v89yvGjDbZ4jAm95k0c04vT+XH7REZAYjBvLahlOaGBbIEghTMjxksFlzMizdNy8SljF0pQgLDi1+U0iMLyzIZAyRGxOvcnCdts5N3pmRa76I07bW/LvOLqXJolXcOy6Ha/3vuIfcGJohwT57DD7qXBkTlh37bkOnJrx5rIi0N9PqywqDzEdlvrpy2lPU3FDGYPVoC7r/5A0cD/9jk3v9ib9h1JSdYafW6D6aU59xVndX9gNCLfaKpn8gfT8oQeJ84uKiZ4GoFMYQyCUQE5xep84htQlqsdFfcjGkNC30na6QG5LbeOT5I3Pde7pcV5oiwAiX1Seoq6mg35M1eZ8s+TnP6b6mKGd9QogwG+t4BHIevrMUQqvlnT8rRqFrAlvegiCMHh1zzpnkao5+awKHiumpI00tvGSUGGszJF+R4RFMvdspWwFQj4/uGCG32mmPXD7ALkbBJoyW27fVVAtgdnmkbqkE7tG7yq0oHMmwoW3p7F1KqUY/i2xmbyM5OSt5zt+95AAvbhLbBaS0d0bgXvcvCjhgQNLtzHHQRd69MNf2mnllDaHnHErJPUa/70qa5rygmmb0qLwbwdC94Esg7FK+18qzOEYunvI2fDyJO3hvDi/N8EDSXeO6OjistIbimbTjxN/8MtPK2KJ3P+P4kF6OOFQkkSZoaaA+VpFrz+3bTTdimEM2LgKwxjGTABU3ImRuRg1HBGIP+pPT6ZpLYNwaDO6eB1ECic1Zkhp7Or3ejndxkyKg6IvlAQ+u0+zuvRzOGFNKp5V5nTyYuBEh7oZJmR9Lwyd2uqO5AVcSd0efT/W+aIIVIi7tYIJ33kJPNq+DreG/KPL5mQUtMc52JC/OIEnxSeYQCV3I6weHUERCX/o9T3krhWtfubgtu+l1rCizZiub36kgsxC77WZfhd48JU9fAEfa3ZC6QNNtcRevchV+p1+FC+SObUW+dsYT7ZgyjBLXhjLqDRQroNXFBLpPPLot3oiAoRV0Ed9DiZp16IZZwXxNlSxT/AjCbphRqBwfn3PpovttHSeWaxWSnbPPshveLWqvtilpHBl16Ezza89YwBntrgZc2jo6Q3+WzrXO8WDFhlUmTQJEtWaGxd1B085dVa6+S7wb+FQchDsmWDEoRY4r9hYBN86jXD2G2uBGoh9zQ2RWTkJWjVYYQkUYsttE2s8uv1vb8gpXRHtfgQvADD1rTxBMdN1xIOIiDxvJdtAr6/NjAsHiUat96FZdt5AiDuf4//NOAV+Z2FFg X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: adf15599-e367-436a-b33d-08db7c8ce1d2 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 12:47:53.1336 (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: TYGsL17YdfN265vucSfNGSKeOc5ooiS/fNHui4JOE6OChBhS1Ubkqvh+cieAT56w4oJoiRHv4ceVtffaiOHwvA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5679 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?1770494830865259806?= X-GMAIL-MSGID: =?utf-8?q?1770494830865259806?= 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/pinctrl/berlin/pinctrl-as370.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/berlin/pinctrl-as370.c b/drivers/pinctrl/berlin/pinctrl-as370.c index 9dfdc275ee33..b631c14813a7 100644 --- a/drivers/pinctrl/berlin/pinctrl-as370.c +++ b/drivers/pinctrl/berlin/pinctrl-as370.c @@ -341,8 +341,7 @@ static int as370_pinctrl_probe(struct platform_device *pdev) if (!rmconfig) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Tue Jul 4 12:47:40 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: 115756 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1199988vqx; Tue, 4 Jul 2023 05:58:18 -0700 (PDT) X-Google-Smtp-Source: APBJJlEGhFPVeC16cquGQuD5IMhfD6Jns+8J0XaOLOwZrpvqv3ITdtE9BBN3MpG9G6QE6n3xpLM0 X-Received: by 2002:a05:6359:67a3:b0:134:e458:688d with SMTP id sq35-20020a05635967a300b00134e458688dmr9864946rwb.15.1688475497748; Tue, 04 Jul 2023 05:58:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688475497; cv=pass; d=google.com; s=arc-20160816; b=X/ob0FoE3XLEl0bBQmCLMZEho3cPz15vLJWDUGetWc1R5uvTXnZ0Dj+iI3ZDipczGp TF/s+rVB93/NtXy1aHmQrt2V1gGYF8AVYDb7iIVtiJxw/gL3bJ3jxaALzX06wRUvNWsm WnqPsOPOngKIa6tNrQ5QmNPIbx4L2Pe60wzLRUC0Pel/f15yC4E+ysF19JuV0fysBjJi ikkc2BQ3/ynm96v0qGJp0C/nOguYfDT4nUib63fOUvMRAI1pl2RFzb1WzRMz80+V8D47 CE9MAOfJzrLlEfxoW+AvKNBd4e6siBe/Bv57wN5Yvq7NMXSh+4dz0bssP5klKCwTWGjI a4Ew== 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=r95PB2vtwVietBCxyqromQKBMMC2ggg7HLSAR6qVvas=; fh=aX/n4Ze1IIFu4RyHfQ0WMUHZtNnyaJXO4ZrlwktU+yk=; b=nkVTrXsgIJ7ZDg02WrFXfBU9ZMX1Lu2uSdLfgrQjxNwK4iAQMsBNasaELFcJi7fenL k46X7vwz12ZiUUnzfbT7sjy2B9Q4igGc5ZRDW/5z/vfhqMwFMRa1CRnIcMJ6zfK/t88i XBhr0s/64MiaBv9flDV1ytNqspGCtEXrhhMNn4qT1cDPm7UAZrmlvRzpF/oVPzdz0zMc Az9hdXh7TBpFKIYJ/Hw8KHKF/3CCRhq3zWU5vFh9qmbP7C63ybblmuQYxWeN39j4Hz/t EPAUKx5brGAXGUrujFnilUkVkxmru9ZPdQtwCXDegXI/P80HSVHOGYf2mzMG285w5LZE VlNg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=XykptRWX; 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 p4-20020a63c144000000b00530b6228f91si21542734pgi.895.2023.07.04.05.58.04; Tue, 04 Jul 2023 05:58:17 -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=XykptRWX; 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 S231290AbjGDMsI (ORCPT + 99 others); Tue, 4 Jul 2023 08:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52216 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231209AbjGDMsD (ORCPT ); Tue, 4 Jul 2023 08:48:03 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2101.outbound.protection.outlook.com [40.107.255.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A975EB1; Tue, 4 Jul 2023 05:48:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jS6N/hKVwjV+V6BMs7orYVSapdTRrwL0I4IfJb4BeC5KzKuz8vWlAYOCEtlp6q31BCv8KDfD63pbWiy+nAQYqd/8xrvoct+9TKbMnFRvUlCL/yMqewLLzd5nAA7lDpeNYzXe1bZce6bDQwZcOerXMDApzeGCGBQmxxc37MIPZasQTkBJRfB5jD0anm2eFr4MjUtuKM+APWXLunUdnGDp1jwdyp/FY87Li/MEF7FqVgA7SUPnbcUrmedk8E+Uluq+UHf3i9TnI1OdQknn2OvJ5DIEtII12Yq18eHFEJxCw4u3X6aqiMtcX5tS65c6hV3CVO9DurrUYzTaeVtbOF8Geg== 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=r95PB2vtwVietBCxyqromQKBMMC2ggg7HLSAR6qVvas=; b=es5ZQz8Rg1SRTU1fc/PZw+K726+y7xnTpRm2WR9liYYs/xwhwgWuCxGvRGCarcHpsccjmagp3PTTkPauHHZcnvXE8M6wmVhIMkkvUI4kvAMnN+vcOLAcUrwRTok2OjTubOz4Y42jnGmrOAAZhTFsuRF229YKmUvjuGwMrlsWF6dEwM5r1h7gZdx56UvwB+ZFlmGoVkUHzgSO6p94wevExMMLXdb1RkHU7m9dOjBQk1K+7NIEV7uCTgBobslIgta+17Q/zAStTdP6YxpV/Zpac078hOBv2I84k2i/gt06WDYKR3+Q1qKJaliL6lXPPMvFWHXNeV3z8c2DBqzpdFMUTg== 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=r95PB2vtwVietBCxyqromQKBMMC2ggg7HLSAR6qVvas=; b=XykptRWXdUeQomy1M7opK404BwmiwInN2lJeepG7s+UuDwXsWMK9PwSTNlW9AsDO6tSyyKeZ9xhTZ+YXt+gQJovyujTozIyaHe1EIVGZ6P9b74rYiKFwRRhj7Z9zW5iBsXpBPFAjiRLs++t4tZK8KCXVCTjB6PY9GxGQUQFQAkgqQc4j1fL5wKfsEaCVgo41a3fiJDgEt5NyxUKKXU1qn0Rc/0wnhuguS7SORoC7/VPJm2pwwpTrO+OMK6hWoMVzmyCaRHotsGw4hIXOg1CTSAtnsKm2j0pJO7esHE1pC3hRR1k/sOFl11q/2FFx/7xXRHmtN8hSY4slRVrFvbY4Dw== 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 KL1PR0601MB5679.apcprd06.prod.outlook.com (2603:1096:820:9f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 12:47:55 +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.6544.024; Tue, 4 Jul 2023 12:47:55 +0000 From: Yangtao Li To: Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Linus Walleij Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] pinctrl: mvebu: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:47:40 +0800 Message-Id: <20230704124742.9596-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704124742.9596-1-frank.li@vivo.com> References: <20230704124742.9596-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:1f6::10) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB5679:EE_ X-MS-Office365-Filtering-Correlation-Id: 6812234c-246c-495a-960e-08db7c8ce308 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3a9WPDtvJJ47h/81FgzCg7D5AYbm8DEr1q1XNBElX/B2WoH1D2sTJerpIr9nw7ZueIzxMN7sU641KkBHXvvGmE8Nt87YPGx9Id38B+cEhk+yy/Tqy8jGHL7YXn/x3WSq8l2ka5FQHjy0zbTj9gGhaVavzOzeyXenAY8f/cd43L8hEjGTQOqOk9xm2f5G8Jl3qw3vhnY81EgGxcA4kwmlk/l61aa1aPKwh7kvkQN4OXZS54c9DQNoDvmzrrnyJRK96XpHh/AOr9WE0qSbIbp7UVFMxPWudBYasFix5WGyVP7LmI22DOVrwz3VATtMOz3GPPr/PsjzrqqhCOtROFxpBcD7qsXM80VUFO0UNCWb48/HYvUfZEM3nZ1/YI9gzepeZgLC6FcDxnaj61qBAqdt5vCsmhNkW8s1OUO+engLLbed9oMXtOHho2PNnotcKmUU7cJdITE7hGkKaqDkm8XL/mxbAeHna7/FvgRD3lr8GP6qRRIQd3ke805hideN9PhPEkoXFRraTOTo7QX25Z2ubUuHAF2h+dqAtZ+TgzGeSrmrss/D6CVq3PrO9O4UEdBi4aUyrSbDUDns6CTqimF1m1Ytw+1tzvqUJaZ/yVx4kdaWUUlzRKdWrdFLPOaDSZsZ 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)(366004)(376002)(346002)(396003)(39860400002)(451199021)(1076003)(6506007)(66556008)(66476007)(4326008)(66946007)(38100700002)(478600001)(41300700001)(38350700002)(316002)(2616005)(83380400001)(186003)(26005)(6512007)(52116002)(110136005)(2906002)(8936002)(5660300002)(4744005)(6486002)(86362001)(36756003)(6666004)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Q1/6nqP1yhzEfgChRNvw+47+6eci4s8EiOx80W2HkRVtqqL67uZyImESBEBJPjzgoT1kdf3fh4hcDDjyC+Npzh1eAdG4Y3PbQQFdnNZXxoNtrJMjlyDnvRNYPLiALKi0XCFEA9WdmKqcyvVyxkCMZVj3so3hYmbtFo0SjtrEd12RMtFaamHUheZxVL+W76qtXDSnge3+w8lFBzeZGKgRMD6pkWCF9m+XuDKWkRwsZabqNY4iD3L/HAqTw40/P8Mpb/coJsd+DoqIE/KgBlkwkUNDv2QvOuN6RL7PP4K0fe2/KFxmHgOCQi8wr35N3ZOh+uH6M98pwxgbD2JfzKkFwk7xkr2zmIq7+1MZr0o9j9wqcnUHJE8RFP6jwmNHM6K+G8ZeqFFXe2rP6v+FUoKuINXxLpr3oB5RzdzBj5tTYtvBvEVFzaCSz/K4dcxO1NzSVXpIW3p9A22bWsAlUviB8jmxzainTVOkhlDAgMAJbeCu/dai/QI1dZTY509jQxzMG7S4GrUdjYNAWexDr8zGgwWL8vz2eHk24ufaeNGrEgsQH5211HMJz/0PJGhDr0FyeOlUBgNtBokCscTWpcuCz2WhoaoyFHH+P5hjLhR2n+M6Y5IV3DXaLsagbvPkyX/SLUhOi+EK0xw552mClBmDWi959n430uY9l6A/uteHNONYPM63gUM1G/FX6LvI0jOUlIYUYJqFPHdVIf1oyqpoHDv5cT5GOdV2wJleMd0sfjQ5K7o68nJFjYHYF235mTTxIWpnuvMPOYysYn7UPgG9Dp5/Vvy10Ygh3yeDwhsbxfmEfTgz+Parof86WGTN5GKwm5UbanA6CI48Ep+j8mIwZlqWOoxmp3EjQ3HDGbwqCAxL56LnadZTChjIN+O02rq0X9Yt4PREClTUfnwBFPwn56W73UFIi3SBQhzLcMJlt1h+LSj9GcccSfaPXc6Sdqi3zd8b1EG9s4M3TXfXbgYuN0NxGj3ThRC9LoUKS+ABHRiEedxz1Ob5OZf6AHuXtvEeKB3EKmcvsQs6mKQOLfS7hyfISp4nyj4RrKHUMQ09/6degPe+wZUQqKpKJnuolWl4owhWSou4aXpadE0riWfgS2eJPqQFMrct5joZVeje6A3jv7QDjV8EMMBYnJ+bq4Hkrc4qV4YsQ4yg+sUzUpFPwFMWtL2IoNxFSm3W7+4b8xvvhevuW2IaB3js/9QA/l6L/fQTmqEg0dA1I+NkWNK/0NtXkiwzjXyqdN+ymz4hgjF9X3JUriRaQ7bdvwlE+WWxzL77gabGBbFGsWRHAPSFn5vKlMpODXjyOC8rT8C83CWIgn1x5nYD5M0fdMvmu7qVnpIBiWaZi6ORaZ08URSI4CxQw0UKhaesytRCJJW9mOVyx9nJEkQPvJMfwInI92RAFZ6kdg/DCtZJP80hkch4SEBhkBfFFE2Pg9g1nBF2okHM54B0BYVRQ0kx5VQK+Znq7RRsCqAHDmFEjM8156ossKq534dg59rXeiMXpCQCD7a6BY/JgJ7ecBR+xLhzbItoIu675pe3Cxomjih6/GCkXaL8Yyht+V57Ou1MYtzgIhB+LZnRWpyGe8f2bPhrSh4s X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6812234c-246c-495a-960e-08db7c8ce308 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 12:47:55.1351 (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: tQ7dpfM8AhsCEgkiG9bJEcDCqR4prgOvz9giXV5VN9nOpCiQpMZq/yhwcn7VFdC0hLwHp5n2AnKTe1LoMp/eKA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5679 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?1770494883295047426?= X-GMAIL-MSGID: =?utf-8?q?1770494883295047426?= 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/pinctrl/mvebu/pinctrl-dove.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/pinctrl/mvebu/pinctrl-dove.c b/drivers/pinctrl/mvebu/pinctrl-dove.c index 545486d98532..bd74daa9ed66 100644 --- a/drivers/pinctrl/mvebu/pinctrl-dove.c +++ b/drivers/pinctrl/mvebu/pinctrl-dove.c @@ -784,8 +784,7 @@ static int dove_pinctrl_probe(struct platform_device *pdev) } clk_prepare_enable(clk); - mpp_res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(&pdev->dev, mpp_res); + base = devm_platform_get_and_ioremap_resource(pdev, 0, &mpp_res); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Tue Jul 4 12:47:41 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: 115758 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1200096vqx; Tue, 4 Jul 2023 05:58:29 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5fi4/3eD26NSZXld0ajl65eJQpOFzU8jvndRpUOpXIuCHONhbm3fYaTcZtD1ramIsaiG88 X-Received: by 2002:a05:6830:1007:b0:6b8:79e6:a2ba with SMTP id a7-20020a056830100700b006b879e6a2bamr12791337otp.25.1688475509415; Tue, 04 Jul 2023 05:58:29 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688475509; cv=pass; d=google.com; s=arc-20160816; b=IYcQUbySY6Pu2PppqCUKpeicR/q6Y8pAOGg1l7nnchPEURVyY/sxFcPGYBQio3JE9u mAx/Cf9nqmNFVr744X8TkxtLcRE5RMDVvSPmLqq8fk3DJfBwqrYLVHtEJgaPqnTIV7Hm vW3gXSrzCUrymgyChJes64ZCLwnjgrC2PZzfJCXiU+3cTgugCJGG1mD31HIdi5p4R9Gt JzQLDr820O4SgEjA1BafHTdDEOhMTVDu01eLUdcWdbUzMdkDpVlt6OzhxJNmiLza92zF z5zeRbaVErJncy3W0usT0k1opOVDBo8F/1O8xSlUb4Fbkpcteh64PWYP5GQayKRxsQwD 3zxg== 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=WoPGO8xYoQbo02iizNYAsQ4M+whVOXi4Yv1TVZl3jV4=; fh=e4sSmt6EwDw6a3BfWpDvNtu8YvvpHqZdd5RPHpSXfK4=; b=VRMDq0ilh5GAAXhjXtU2jjI0q9GoXIzTe/SlrCKcdQ/knAVn3O8b3CHSGstxBUwQO9 P31HEIX0fPz6SmkQKR8xbs8JLshw0HYUdZinCJ9Qa95CtT7PCnihsGl2t6MhmS98ieEo c9FQ58MUmDT7lH7cbfsYy/asaoblsI2bNXX4JaUeruwHe5OjjX9LgtFz76mSbek1HvDy UteABtQmqcWSqGVeKTsxUcItjh8ieBhqdW6TeMVtCoOum1+hH5dROPvP+HArbHwZqQlm gNfhQrn6+AUUNIhDfZXT7r+TJWAf+i/8ebVug2QCI6Of42YzlmXlRDoCw4fXOVKC39wb cp5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="K/1W2MC0"; 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 v70-20020a638949000000b0055bc3848530si1401724pgd.250.2023.07.04.05.58.16; Tue, 04 Jul 2023 05:58:29 -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="K/1W2MC0"; 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 S231309AbjGDMsF (ORCPT + 99 others); Tue, 4 Jul 2023 08:48:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230458AbjGDMsC (ORCPT ); Tue, 4 Jul 2023 08:48:02 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2101.outbound.protection.outlook.com [40.107.255.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87F0AAB; Tue, 4 Jul 2023 05:48:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N6KE1HuXVs4Gvd4OdcRPwcKhc+w+uOW/sg5+FwKN/vtQHdSC4fV4cgPcucu2SjiT10YRGpvH0AwBjJqpgSxUKP9TYcuF4UVn4BqP8P6kRfQ0eksuN//twyChzL+suij53xQHe0pZ/uQjdSGVXpD+Ua/rDJlikva4EERJMGJwps3d26frCPrZQaffTP0u2IWKNxT4oQuA1M3Yh3aagAXveCIdn/ECmeU+KDOE49QjbZDInko+cvkLVQUTa6Pujo3K/hOausYPFMwRd843A3LgEh93vVdDp823khzWes7YuEt9CdFqyoqMXGS6emy+qUGKXi+2ZwIFcu/SzZKVldawHA== 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=WoPGO8xYoQbo02iizNYAsQ4M+whVOXi4Yv1TVZl3jV4=; b=GrVT/7fzzZjE69cSOY30IE15+zxSA7IDQJTbmHVU4Yri2dqpPbnekwySmjuS9d3yaNgjrIoecprBArSjH/oBoKia08ZvRvyxwJ6iUkK7u0Lfk/TNTEgnAwTvF4aag6naI/ZpunDfGZbU3sjAZRbC23GAi9YbFvAE/mgfJKhCprPSILoHhvA6Le9UD781SVV1TRoW9OTRaQO5qbvXtsFsx49f2Kz2t9VKxQF+qq2se1SwipKJUa51j7PAMuwdi7E3zPyAZJzb598eANE9K7xXjm+CiT9b7Kt8gGQgxtONfe+VrgvVfoBjCBTPqgZjiA5xOqEGoOTG+hlgBYiFe3F2NA== 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=WoPGO8xYoQbo02iizNYAsQ4M+whVOXi4Yv1TVZl3jV4=; b=K/1W2MC0YlAL4D4qlAJa3oTGcAlIcOua5DNi5yq7pCVPdwl/52Q+2lGWnfXFTweZV3/IOfdoEI7urwonkob95UBlAynWvr0r6gZMa90OnW3WMXsVfsKtpopm7A7MQ3ibPSxBkUF4QZPy+SHz8zKX6bWc7fTfXef8r//b0H7CLrPa/Eoc7zIXQ0AAcnps+jdwJZX+RGOzLddMCxvDkjQK/hwSgZIVNvsb1cbIRoY3Rraloym0OqsShr5lBY1L3K5jczT7e0RkhomFKTwW5beMrLoSs+ns3bO3dDNxp/wnjPobebMMjC5tiJKIUdK4H8z3SqpRV5eKNb/7nIeDSM/N/g== 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 KL1PR0601MB5679.apcprd06.prod.outlook.com (2603:1096:820:9f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 12:47:56 +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.6544.024; Tue, 4 Jul 2023 12:47:56 +0000 From: Yangtao Li To: Linus Walleij Cc: Yangtao Li , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/4] pinctrl: pic32: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 20:47:41 +0800 Message-Id: <20230704124742.9596-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704124742.9596-1-frank.li@vivo.com> References: <20230704124742.9596-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:1f6::10) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB5679:EE_ X-MS-Office365-Filtering-Correlation-Id: 36dda063-9df7-4eb4-e0c6-08db7c8ce402 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 7xNdNSoAneSXguSZ/egP0SAZqhlgWqMWeSCcdmTBhn+yH/MbmnxSOHE8X6PWYFNjYz2Vny+3xrrX3nt1zWcWRHKGep3adbw+JUoQe/lBvH9TSjlHf6t6y/0WjHT+kE5dLOnfxPYeG10HthXDoL9/Ou1xmEjQdubZAvHH0qkQGyT2RacgrmkkQhU65ZKXcidMMiQ3c1DRVujGHRR2y27o/SvQB1l4vf64a3C41Iu0NjbYnNKr3Ynhlo21+6v7EHe21bU43gk0fzIjRGsDQhVjr5twKLujIABeUMfIDEGESQH8nyLwLlXYV01EGniotPY62bt9Zbg6JFHRWMPE5EPfZWuHMvNXr6i8TpMXH0HgljWIflJOA0EK0ygE6WJkKsrv0/kjgokvgYLP6Vc760O5nQk3MRRpn9NraHwrM0kZ0HZHilIA8rwLoStidmQvEYdW/v7VSZ1oaeyriSLoHHjqcJ+AkL6OL82r8sEUOD9kp04ri63yXpoGNK9zB4w+ZK8TPun+K7ZMVVhS/YIbkF/q4GCGOMLooc7WvpdOhFiFokAn0n8NyhjaMbZO1WpnVpOsY5kWINPqnQTczhOioEETXKxglr5QPlcH0mym3Dw2V+2ww9ulN+1DLqWTi2BVrdxk 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)(366004)(376002)(346002)(396003)(39860400002)(451199021)(1076003)(6506007)(66556008)(66476007)(6916009)(4326008)(66946007)(38100700002)(478600001)(41300700001)(38350700002)(316002)(2616005)(83380400001)(186003)(26005)(6512007)(52116002)(2906002)(8936002)(5660300002)(6486002)(86362001)(36756003)(6666004)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: y4Do6S9KY5liUA/GfqPRXF++itxEDLqui1huksipENIsGxQWK0Vlx9wWYKhdZNhXDVFFE/jR2GVrFz3i6n1OSiXww0urBN9ddcW8krLDS1W9M8YBCfCj9VUMjJEKCS5hEsC5yBEPBaaD0gZY2gK7483Hh/rcTpFu0/a9fx82PiM57tS14QwfEYUvmnPtRId8zZxJsfDcy2FkeNeKtPGeKin4BQ4s0PYS1RJgjnZYul2v06dkg41z/6fiGYg+DNVjFkWWyZurMcpbycl93O3fxai4wogp55nah6Dx0/KWY8xasobaySh6GEAxcWBORdtcAxmwxqP6FhUIHAsXutj9grWJAtbXkOFVU1v/XABoDh0gzHO9prEf7uWRcaIhBJjtCMVq+hc+wFUtnx94YkTWsj4tYmkBz5TLYukSln2Uie2sgWF8acZ9OTwinmnFWbKq1hFqYeGlR4gsumOOZvzbuLgjfp//2aKN8+2OP8ejc/8RLAsJUlW4sPqbaed3A39fwS365urPsNbao0LpJ7UHRvAWZQwlgqChSK/TZtXa3WuURxJvHYQ6K2bQDL3YFCzkLkj44htK1m2atJXRKNrxzceNCkCPCgy/hITj0GPmVZjciiq5z8gdjCT1+T5ivaDa1g3MYQGJwwZO55vFJDn0Ii/Kqz0zhzVNYuQJV2TJ25YK2AUUYo1OkvjW6V6NQsX5iunm7rS9l5+pABcHeL6wgR5azWsK4neptJrOYp7NeO2QKcnge9k8XNgGIejuoEk01d3UyAtLfTA4KK9wg1BV04VnOqkfhpRNeYfzcTB68KlemW/2YPH7jx+vDy8OjrfMQRtkIyTQozSClcZanhkbAolTn1DV5gaAOoI2QD8JiCK5p0CXYVw1sQWJYqJiHwt6mSy24XIH9PMQjxih/get996wCTLrwLNu0fyfyivdljGag8cFEFSDExLON5S9h6Z7H5D/pOkUv5vLVRItHJv0E/sE7sr0hRMbDJxtTfXmMeCoXTTjallyb3y0uoYsdxj7w+EeGerC01NpWqA2GrTc6a7a9fkLKaXsBLOhIsrSu+QwuJX6Ey5iQnnCsjlunnaacAhVfVBUHbu7IWtr8Bal2YDnoFqqIxew6PDSgIt9Q1MtcnOkB/+uD1lnEn9xKpV8VatAaw47h7WUDnZ7zsjlXqWNLZhf4xodGeJ9c3wwEElRRavqUntnmwkfVsXd+4zLsgoSJf+XJes784TUZrPukCHUuWbKd8IIDsOrProL6BuDdOUHM68l7SPS+t+dkmEg4/ALGpF85DFlTKcnr8TMgY9ChLPdRveVOhkzwMMD4IJST1WyWmjGiZqp6++8T/TaJS51E/OJOvu60EYohCP45wRAHIR2UP2R2/zDfq0rvizQaDpG2oJ7qOCIUqhnBL/y67AfqAKMg/UQq6aPUuRb24BcdYom2hkXi/Jv7eXVEITXTnZovWlDcyQ1whDRYVQQCOPnKkvGPbNX34xIS27kzAZciLxYCNUjtcmt7E4RxqH25ImDPlWVAymE4k5a+FHWnK+i+eR2RD7y1PQVmkwb7QBEIvr2dokJIo2d7TwgRXQK17YJM88oS3KCZryWbssV X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 36dda063-9df7-4eb4-e0c6-08db7c8ce402 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 12:47:56.7860 (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: cxbnox1sDlHnNJVBfspHf8nTrURy4Lm1AJUcF14zvvUnghro8et5NtafFhnA4OaGHinDT5d0FJYsoZn+iQlRxw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5679 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?1770494896028720407?= X-GMAIL-MSGID: =?utf-8?q?1770494896028720407?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/pinctrl/pinctrl-pic32.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/pinctrl/pinctrl-pic32.c b/drivers/pinctrl/pinctrl-pic32.c index dad05294fa72..8ed6c5f8acc1 100644 --- a/drivers/pinctrl/pinctrl-pic32.c +++ b/drivers/pinctrl/pinctrl-pic32.c @@ -2162,7 +2162,6 @@ static const struct irq_chip pic32_gpio_irq_chip = { static int pic32_pinctrl_probe(struct platform_device *pdev) { struct pic32_pinctrl *pctl; - struct resource *res; int ret; pctl = devm_kzalloc(&pdev->dev, sizeof(*pctl), GFP_KERNEL); @@ -2171,8 +2170,7 @@ static int pic32_pinctrl_probe(struct platform_device *pdev) pctl->dev = &pdev->dev; dev_set_drvdata(&pdev->dev, pctl); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - pctl->reg_base = devm_ioremap_resource(&pdev->dev, res); + pctl->reg_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(pctl->reg_base)) return PTR_ERR(pctl->reg_base); From patchwork Tue Jul 4 12:47:42 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: 115759 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1204510vqx; Tue, 4 Jul 2023 06:03:37 -0700 (PDT) X-Google-Smtp-Source: APBJJlH84EZilmNjCAKwOVhJwjxoPULbOfivxvDQ/tqPJwDdJSk3/ykOvPzFTL+UN0OjjB4Jxq8S X-Received: by 2002:a05:6a00:2d0f:b0:682:93ce:4825 with SMTP id fa15-20020a056a002d0f00b0068293ce4825mr9350170pfb.3.1688475817159; Tue, 04 Jul 2023 06:03:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688475817; cv=pass; d=google.com; s=arc-20160816; b=fenqHcnauIMhDiVvEg3UdsYqUVDtvOZRT4XWfbmDwPepCT4XhNNv/cX5X0XbRhjSOe WPBCDRnqWKYKb3ivlTliD0tuKYyC9yg03G4ridatC0X47HGsFwFcblWIPJSekNgec+j7 Aarpg8y7zrRpnlMJ4mz6nHlO/E4o9Yte6yRB6mvy0M86sMbEmkpdZ6gGhspOhC0liq/i dm4sFvbuEAqNakthTdgzBB6n0jicX/X6Yij+h3c2QmPHLU28EHsZeCnMcQF0fyXBK7+S cjSADUbQ0rk1PNh01rmLlz/L7p6g5Qsc0xwyjbd5WIftrj8T6cfXzNXrcokMfb+opaxe uIjQ== 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=dhYUFsBoO/2LlZNkqFI3if/TqrnID+Q+PMGbGMqG/zI=; fh=e4sSmt6EwDw6a3BfWpDvNtu8YvvpHqZdd5RPHpSXfK4=; b=PCRA05Yt9aC5w5bpOs+6Pd3xQ6MjuLxwOwE1k++LCdNj9yhpEQocPdMir/7nnRmjD1 b3qUbX15vpWp7MwhLGKOH0TQCTMpacfP11fEdpUWUj6ttQXEZWYl8DCEuk/pAe2DG3Xx FY3dwtOu+hVG7+pdzqnChrcuQA40MDTnuu6pFD/nOG52knvpztDtVZOzThA0gy1046P5 xtqpNc9vgxwh3XFQnzgshZl7dXn+0P4b9u2VchIHIfiQBD82V1KI9fQjAobAXAcSd9zY gwg1vK3pXlnnfO9MaXpNS8WXm/YISSh49cofVnc0rkRA785aetel4uzz7AipyGB0ahqI mRtA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Xw1PArfx; 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 s24-20020a63f058000000b005537a94f14dsi21180728pgj.844.2023.07.04.06.03.15; Tue, 04 Jul 2023 06:03:37 -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=Xw1PArfx; 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 S231433AbjGDMsL (ORCPT + 99 others); Tue, 4 Jul 2023 08:48:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52222 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231284AbjGDMsE (ORCPT ); Tue, 4 Jul 2023 08:48:04 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2101.outbound.protection.outlook.com [40.107.255.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3A53AB; Tue, 4 Jul 2023 05:48:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YtWRC9+SnmORc+G8CS3jQRKJLf50BWHG7Mgo1NPFn3xVdRZ7JgK1s8WJsHvlggyxwpHnRCFhjcrKeRhJkiqS5TufsMH5PjBWiab2bWlgtOrEEtQhf4n+Diiz1pQg+1XQP8eJEzXC31Mdb13WVaTz2/NSh1hsuYhKyzRUchbQelK719A+AEBUz9rkjzUxdo/C1R27oEdn/RJ1O7I+bJEcEJ+/V7TBCapOm6E5bXRp8pXE2uCpp1HW9F1RclTL6gRNyFjpvChoiT/CbNoBhy3UKucJg+kfdBKZFgZaoL+uzi1cPP9SZDp2YhBisBpUW1+15uICBFHBjo2SgXUrKxA3BQ== 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=dhYUFsBoO/2LlZNkqFI3if/TqrnID+Q+PMGbGMqG/zI=; b=BEHvzc0eqTVDHN3Ozfk6VCRCAlpWdShuhQq/qotwnqz2yZIYO/5sdsS9lsnLCvhlNQkp0dMz7+GCYXTITRbRsDSdEUhPKxWXmyO93pQEtazVtUHcW2xgtRZCDp5h4fSXm8aGOn9aNlc2IIqAKlFyvWBmFCndN+4cFO1buWqU/6JskP6DmDoEqUL+xuAfYJ7166FDbzF54uY6eWqW3TJvaWvUOiySQBf5JemHI7/wgI3sJeXjM89Ip9vkBnuyKH4w65Xr0BI+po9M7EFP3vVgi7q5hnx2BnRgOfvQkNFltuuDYGLfaBG/6XG4sDpE399RfRn4ymh/T7fENrOBkLMfLA== 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=dhYUFsBoO/2LlZNkqFI3if/TqrnID+Q+PMGbGMqG/zI=; b=Xw1PArfx4dtkfbXEpfxar7iO0nChSgj0R7pWmOzC7gYK8AIL9gYgmxVyCu0h0csjpv8NdZVrnWNm+euWGexRYQwfLOvWUqAS76hX9le/VvFfXCl26rA8TT92nzAd98H7Ec+QOrYsgyGCxc315lAQ2G2ml9kY95HMRlQp3beXfqicVXDDfjP5DrKaLoghEmXYoF0xtPYoJNppty//kxdtnJW8eJRd9WtEAAoXhFOCP3Ye/uXK+LIr9BqteQqfAY42t2oQTUs49tq4WGRu7rmjX34SvQHbnxGP79KZOrtRloa9IjNGjieMBQ0CB9Qw8qgx0c2guIYzNNU0zsR3tyCMmA== 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 KL1PR0601MB5679.apcprd06.prod.outlook.com (2603:1096:820:9f::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Tue, 4 Jul 2023 12:47:59 +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.6544.024; Tue, 4 Jul 2023 12:47:59 +0000 From: Yangtao Li To: Linus Walleij Cc: Yangtao Li , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/4] pinctrl: ti: Convert to devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:47:42 +0800 Message-Id: <20230704124742.9596-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704124742.9596-1-frank.li@vivo.com> References: <20230704124742.9596-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0034.apcprd02.prod.outlook.com (2603:1096:4:1f6::10) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB5679:EE_ X-MS-Office365-Filtering-Correlation-Id: b79b5435-0c94-4ad3-5b76-08db7c8ce574 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: DuOSOuIjp09/6GTbYlWP+ET9i1arIVDH2EJAkCaHuGojFumfeihiaPoLV7fRpyc6BeqSMNGpMzK7JdjZVGMj9Jf+Q7U2xfU5QxFxRcdK8gk8c8K8eO3D9lxdIgWh2wuCEWRJfjxe4Xj4A3K293Ok0S9b0AZN59BPrZyJHsDIB/PvN3qszP7yjjET/fq2I4OIMjeUam7vYF9OtvRg9GfWonK02zh1enainkgiuKxf9Ygco/F54XOcxl6HMt96Y1LkAfiBfXidAFXnkSfqXAFCDqks5r9p2TSV2sMqkACMkodGIRnl3djNNXqEAgiIGXK12oV2HF5xjktpip6sKWlQGXlQEx9LKm7CY+Thpzwv4FFn1ralc74wTmMuCdCmSHRdW3nUqyyBwY05czsr3u7JRjzAzUIRfU5ah5/84oCf0RrqoAXft5AUdkDzZb66FeDOTTjDI3ZV24jlacSuvDDwloVGdOmgLKWTpi6RcIDEn8kHcVy9PGDa7m40qHM20Wu1knJP0Lq7QSe1ujauiiGUvGHqmj4b3GJTx7uYaGoLcr/ptGkBSLJSir3RRD1xxpj2eEy9JvifsiVQ1YD0z91lbGp3MekVqwp2ohVwRFNdJQe6IYIBDbYfD4HQdSi0lBgw 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)(366004)(376002)(346002)(396003)(39860400002)(451199021)(1076003)(6506007)(66556008)(66476007)(6916009)(4326008)(66946007)(38100700002)(478600001)(41300700001)(38350700002)(316002)(2616005)(83380400001)(186003)(26005)(6512007)(52116002)(2906002)(8936002)(5660300002)(6486002)(86362001)(36756003)(6666004)(8676002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: Mi3fjxQy6ANYwuhuyjTBCn4ajZcj0MEyCOsxqkgS+5Eeo0a4dW94wuNmFvuzor3ezFXVELtcus2BQcn+LH5mje2HrYcCB8cDHExJEoUeLaLj4DzbQccnij5OLXVIrCMPfePaDOzEKlPGLOJ9ulGIt46PDcPtIh6TgWG7AmPv53XVeKwvNB8eC+wHbgghqNiksgmvBkfLYaQTjmJn1uN8VlgK3/av7x+bzIt6j6HGAbMq0mbI+oEJe3Q3Lt96bqhFuzoGdjIgZ2ESwiwDecpKMaZeBlQH10Ybz2iZ3xyEkamnYcBxPApyHnGLZfnqBxyIIIwkF56pL8IrVFzwHJbo2EFMWfej3jpjetXb7oUqLOgQTCbTD+dQAD5n6O915mQQ7Nx9C/L1OgR0/G8WXGWBiVUYXrOCP2QfVKLKHi8+yNNz/15+n2WgfIdfMInw+Gf9bZKIEjblZBoKqCc+yRJHHbDkSnzOTDjKIEN2uKhrtHnfq5ob7fEhBRQrWq9kjZ2zTH5Dn1MlaMvV+JFqibY8uoyySln9o0SjRt6nAPIu33B4OQFCe+XcSpo+NFqUi+NYnPW3aG8Y7L2mz4BxFbMrTaBpKSqmfOUKekkYSJUcTSK2tncGw6O9KlX5HR/RgbGeiQCBOI4Dqzcb9zpul5ZiQRBs21PTsGy7eZo/b+DS6hSCjh2oUFYju4HOpYg3qcDRZ2X0DKygro/84Sgri++POp3w+2DRmIiMnDOM19TshLdzTQ15Gy9fTwgKw8TxSlEnEmoHsgmvMsR3ydoei+XD74QrxdbmYVmB2hJX8KmvX+Nn51b0+M55lxyuVCWMcSYskhuAM1lpojNoKDMrq/+sWWsEm58P9tAjGeUDVl9sf3mlPxudKHD1I7EBcF6XSGX6i96zrXRNugrFh8bdIjkZkI21T9DYuFHRHEpeB3/JeM3OLUe2M193ikcA3tkL/bNJL2TYxF2ybd8JJsMa2hFYMN3aaljXZ+7RLNU9Kx3y6rdIYmB2SfWPYhBoV4IR7hm35ccihyJopQIagUs6MCtJRbwW0zpweh1th3w/uMflqNgdyNUR4T/beqTq2d6vy+YKnHMjm6uZAvLyduLa7t+Kwk1Ws/ALy6l7DSn7reOKETefIEa4wLQwqrsF/urhNLWLZKWCtpvTb8V3Qo9dVHmVzrQpPuAOG/ZVYXVmBVA+oFTT6ZzXINbEzLuuA3ZlI0/0w+5SV0fINCQGNDXbH7Seq2t1olMyBUiXERIqrcNuppAJmg2wD1EEZ3mQp6YvL2utOUCdSrUvO0EwXGKOuYGVrTyCQ399tiNa0pehHINPDrxHPIuQUnOwIJXsIVSRVKdfGjpvUUTOcrNNS+m1zFHNbMD/Mg0q8+DHyfVhVRbr17y5ycTcR9P8WiVV46uboQ9AnJm9Fh+du77xJjpxUE9jJNEwh0AVShOVwAKm/HW6MNndxb3XsWpKHY+9cter58SeHE/NxF0E5anVB5vDoFXQUom6LTBBPl2c8nhyiMTMadsCmfXgjKl3tr0nybLpsY2n56bAFRMOtWx9ujmJmHXWUy5Nj6A+dMbVnDjfBSHKP9gcF/z5nFozo8Qn9V6EpY0M X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b79b5435-0c94-4ad3-5b76-08db7c8ce574 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2023 12:47:59.2220 (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: oWKw6HRMIuylBZl9mHdz1sysIxfeZscbHLajJXMgioolPwco3M58Bj5hVKnsFIpY9AApxMNmuDyMo8+hn8xfUA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB5679 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?1770495218510273131?= X-GMAIL-MSGID: =?utf-8?q?1770495218510273131?= 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/pinctrl/ti/pinctrl-ti-iodelay.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c index 53abddaebce1..c1477f657839 100644 --- a/drivers/pinctrl/ti/pinctrl-ti-iodelay.c +++ b/drivers/pinctrl/ti/pinctrl-ti-iodelay.c @@ -849,19 +849,12 @@ static int ti_iodelay_probe(struct platform_device *pdev) iod->reg_data = match->data; /* So far We can assume there is only 1 bank of registers */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - dev_err(dev, "Missing MEM resource\n"); - ret = -ENODEV; - goto exit_out; - } - - iod->phys_base = res->start; - iod->reg_base = devm_ioremap_resource(dev, res); + iod->reg_base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(iod->reg_base)) { ret = PTR_ERR(iod->reg_base); goto exit_out; } + iod->phys_base = res->start; iod->regmap = devm_regmap_init_mmio(dev, iod->reg_base, iod->reg_data->regmap_config);