Message ID | 20230706120850.11026-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 v5csp2524980vqx; Thu, 6 Jul 2023 05:33:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlGZf4mgUnYxb7ylcHYhrtyPSpWESPZt/dfyqC4teFVv1OlVrbtSrF9fnRImCeeMzNM2HYZ1 X-Received: by 2002:a05:6808:1b11:b0:3a3:b602:395a with SMTP id bx17-20020a0568081b1100b003a3b602395amr1713632oib.46.1688646797493; Thu, 06 Jul 2023 05:33:17 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688646797; cv=pass; d=google.com; s=arc-20160816; b=MSeX8AhGBH3scDRBZb6Q9HcWJxkAWQ0Ise4wm8VtTa1XL2mcZTo2YMwijYdSSxtLLz IfDfCW2dXps2pulIRlermhTeOXWup/PIQInstB/aWXlQ75x/aOL9tRbp+RVZYcXOZTfD dzI+gBZGVPfG4arvJCL1MGWysWSq8DA7+Koa8zuQ2WS/R9/6VDnSn1gy6dtYmyA2PgEb lRCo/FQYIiV7rEWERW8Pdm1wCUIEzm7C1fvXE2kp+XUqrgAKIiQCf4WtnsOMtsSJ9WC0 YBTyhHMhMiRLlkr4q2RtT5v7WPil74NLZDE71PWM/p6LzUNOWZ1vnO4VPHbYteiowDU/ JMWg== 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=+/WML68uYj2jXuL5bSi9UsazKB1sPPP+ROnGfU5ckbc=; fh=JxBGot9+rHFWo3OLvF15NYTNyFN7I1qxqEpaTsCxKjI=; b=Q8IK7F0929Rl8RaooxN6bRgOhmKBexso3OSdHXTaMW2UIzWeKAQFSKSQdlOmfhHECT 11qgonrCR+9pTIb6y2I+FCUb7xRCvADn+LCmfuNzcGJFXqH5ThIgqK8/drDWv2BZRrbo VioOUcwYztsJ8X9NeReeVSaZkbW/9tGu87IsEiNBcHDdwOiQ7lArXswquN47x4nqW5sq QfmoMmYUDPLfjGAX+ZYgBiq3i8sekFwNVITFSKRNWNOql1VjEm6vvvMTAqnlLm+VAiWY xqKJG4wW3vmOUk27AgDvr5gWw3DBQuHlm8aMkQ+NrSOx+fdX2WZ/2IEuXcFtqr9pwHQs wcIA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=Ycfnw5dO; 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 h184-20020a6383c1000000b005537c93c40asi1434204pge.146.2023.07.06.05.33.04; Thu, 06 Jul 2023 05:33: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=Ycfnw5dO; 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 S232709AbjGFMJK (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 08:09:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231921AbjGFMJH (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 08:09:07 -0400 Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sgaapc01on2107.outbound.protection.outlook.com [40.107.215.107]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3109172B; Thu, 6 Jul 2023 05:09:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RVllzy5E14X4FmPK/+dW0LxDhaM3wNhvLrtjs0OC+80O3tLV//hiFLAJM8jHPrWmAi1Z2JCUJS7+SbLtDITuc5hS8BwQhUhiPw0h8Nur2swQkGcLjIWC4EyQt51rZM+IxdnMBk3A7jTlPb7sOBMk1MW0WOkGYZqOVN0oHmJXnW0p2afMkeQSjE2CrGGgSRvswQD1MdGLSM0AZBEdRSHWlngRvx0lGLjwiQTL1ZDFRsfle4N/fQFG+nmL90ZZBEUi14abhJz7TSqm9/AoVu7jfqCvhFh1aCg73llVwn7mlr98jJaEWXqpHblOi3DO/JTxUAB70B0aVdNYGVz6UnZBgQ== 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=+/WML68uYj2jXuL5bSi9UsazKB1sPPP+ROnGfU5ckbc=; b=jSeIGI3zytK9HspkgY6CfdLQ7Lco/18wkTgZ4dAO+4tkLupX3BoplplHm9vFicGlCNmk+7t+4yNqq7jTqm6/Ss1utLeSdQEJE32hpWlGH4AiNvWRRlB2sG0sDFtl4ADpWRGctz4juhXqdA0EHC+MmQN6akkzV1AOsgyGpheyB0sZ2/WOQybF06EIBtdNA3e2tzRkYSDq3h3Dy/P7R53j6YYx/uvrIjEs6TNPWNEONgE7yu89NTK9MHUt9+HKTfhpTTC7NVL7ZH9KQx1mV+sEBYBoZaISqhw4+fLwWmNGVjCvxS5mrDyQ4V4Uw/M9FE/VkLlH89vKGkPvQ9EGSAJhww== 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=+/WML68uYj2jXuL5bSi9UsazKB1sPPP+ROnGfU5ckbc=; b=Ycfnw5dOSu8ey5y9BI5qPLo3sE9PCUOU40iu6IY1+6f+qUl2DeXZ29lnZdnPRtsp5A5CCKgIFRqogGtaUIe7cfbESp6LJZ1vbG+JIhb1o5npSlFOPbOjHOFENSsplc/Qf2idZkGzEJiKvNG3yG37E9W0+LrCN5DoZknapUaYaoq+l9Wz2dTthoDtQLIce1m7pnWYZWeICj2FBWvoSy2JUULzJQLL41xc1Uz98PcnydV8CutvPhRdzgmWrITSTbDtPLNJ4QqAqRE7id4T70kal1qBSh1TAhr7zhR5nkExvnLOx97L3yWAqGlPJ3RX5l3HEUG2DpS7H0o2P5jWsXNm5A== 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 TY0PR06MB5634.apcprd06.prod.outlook.com (2603:1096:400:278::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 12:09:03 +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; Thu, 6 Jul 2023 12:09:02 +0000 From: Yangtao Li <frank.li@vivo.com> To: "David S. Miller" <davem@davemloft.net>, Eric Dumazet <edumazet@google.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com> Cc: Yangtao Li <frank.li@vivo.com>, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] tsnep: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 20:08:48 +0800 Message-Id: <20230706120850.11026-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706120850.11026-1-frank.li@vivo.com> References: <20230706120850.11026-1-frank.li@vivo.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR04CA0004.apcprd04.prod.outlook.com (2603:1096:4:197::22) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|TY0PR06MB5634:EE_ X-MS-Office365-Filtering-Correlation-Id: c4fc680c-90e7-483f-7f3a-08db7e19c9b2 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yx7uHWb+DMEFtBhq7XeTPtEK7rOBM0emScPv9pauop2zifao6ZJy92JGZsKtTP5XdCIofdNh+Fe6+iRZDbfSZC62BNQxaEPAvMH5PexQJlxeOpSolSum+8gakyOMXu+LBa7/T0CJg1T+TNh2cdpDdzSYy3mRDDk6rvPpv9cSDVcLbpOq9oNkPImLCd/ceffC3x3Qv2MorkNeeN6C1z63GkOwXwDYENWqEx4Kz+hfGBxRA0bLPh+XixdAyRg14X5L83fgxLnQGWgjjhugsTmuKDeSJbokjsvqWt1qrXv9UEn80Cs19mhgVuKZD0dGQnZokcohWYIIomGoWIF6KhS0FqBDJCykmJxhQSmUZUnUheqEidx7e395lXjkhBwlLknZ1jTyJfJk+NL4+/QfCMoZA6pOKRvPqYfmuSywNmiak6F6T6aeJeKRgG1kHSJffo8r76laadRQctf31P4nNsfjckIKgi5vnugCgNn4JWNV0/ivvdeWNeJaNJ4oOS3sp92cH8XSCqWGd9Y7gGcV5WNoBlj8GgCVGcuzgmrzQ549337DJgLHEVQulJtUzGM5ug2uZFx/rVBI5GvIcyDw1zZrH7npLtqwyusYskNxDoGExl6Z06rusoNk0PPG5McLU32m 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)(39860400002)(366004)(376002)(346002)(136003)(396003)(451199021)(6486002)(52116002)(478600001)(6666004)(110136005)(83380400001)(86362001)(2616005)(36756003)(4744005)(2906002)(66946007)(6506007)(1076003)(26005)(6512007)(186003)(38350700002)(38100700002)(8676002)(316002)(66476007)(66556008)(4326008)(41300700001)(8936002)(5660300002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tc0RBPFoOh/wjapFtrvuKfuWc3BHG//EiDfVWwgfCsl71tLXkWfzppqKVRlJ83yFCr1olVFYbSHnferzQSsJ+QAVTPCYsAezLWmrymonhcRi9mBdlNRpn4HfpdsUt1XxT3siUaS/YzM6VRjytJDAoemp+799t98hfgWpipd1ML/lF4iOz4AmNxfSrOSsbCGC8PEhuTYxUlgo0+Esy5YDHU1YHBtSJ0G6MmTmy4gX/kV96eiNZFINkOgIgzSpMpPeqXCuT/Oke/ok5YQJ3bkJmgU1P3YbGf4Lg8U2gW1ljgzeWSdx4+JLe0VAWvdj4sKTczOqmTpi4eoknTTUYbhjL2ieGg070hXcMFA12b7rFUX87nZael08w69kUcgzEx+a/1Iopklxeuw8iMv8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b89/QIuoAYg1dQj8r5ECW5aXeHc79ZAo3i8HxDZlDSsinBuNGTWs3yAbOO//BNI8Nlyp2TSw/g0vS6nmTOvIm7FQte7Nk2MCg2jCUWsbkRyOdamHe31slWQFYOhRC X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c4fc680c-90e7-483f-7f3a-08db7e19c9b2 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 12:09:02.8902 (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: VJUz9YNiWZmBxJEpEHtzrj5h5YOxfdvvv4cMvjQ3lH/yL2qHgWV2q+N1jv9VqcxekRbytjdT92gfsKv4RAmlMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR06MB5634 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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: <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?1770674504180015645?= X-GMAIL-MSGID: =?utf-8?q?1770674504180015645?= |
Series |
[1/4] net: emaclite: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 6, 2023, 12:08 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/net/ethernet/engleder/tsnep_main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/engleder/tsnep_main.c b/drivers/net/ethernet/engleder/tsnep_main.c index 84751bb303a6..28a1a4f5d7b3 100644 --- a/drivers/net/ethernet/engleder/tsnep_main.c +++ b/drivers/net/ethernet/engleder/tsnep_main.c @@ -2487,8 +2487,7 @@ static int tsnep_probe(struct platform_device *pdev) mutex_init(&adapter->rxnfc_lock); INIT_LIST_HEAD(&adapter->rxnfc_rules); - io = platform_get_resource(pdev, IORESOURCE_MEM, 0); - adapter->addr = devm_ioremap_resource(&pdev->dev, io); + adapter->addr = devm_platform_get_and_ioremap_resource(pdev, 0, &io); if (IS_ERR(adapter->addr)) return PTR_ERR(adapter->addr); netdev->mem_start = io->start;