Message ID | 20230704124742.9596-2-frank.li@vivo.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> 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 <rfc822;tebrre53rla2o@gmail.com> + 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 <rfc822;linux-kernel@vger.kernel.org>); 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 <frank.li@vivo.com> To: Andrew Lunn <andrew@lunn.ch>, Gregory Clement <gregory.clement@bootlin.com>, Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>, Linus Walleij <linus.walleij@linaro.org> Cc: Yangtao Li <frank.li@vivo.com>, 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain 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+uH6M98pwxgbD2JfzKkFwk7xkr2zm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SEBhkBfFFE2Pg9g1nBF2okHM54B0BYVRQ0kx5VQK+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: <linux-kernel.vger.kernel.org> 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?= |
Series |
[1/4] pinctrl: berlin: as370: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 4, 2023, 12:47 p.m. UTC
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 <frank.li@vivo.com>
---
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);