Message ID | 20230706120850.11026-3-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 v5csp2525362vqx; Thu, 6 Jul 2023 05:33:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlFYnxQIwZ76GSkyp5xqXL4c2M++AektBKja72yC4Lei6gchysG/z9e+4Yh4lJ5yBj+pLhxD X-Received: by 2002:a17:903:190:b0:1b8:a389:4410 with SMTP id z16-20020a170903019000b001b8a3894410mr1322748plg.0.1688646832012; Thu, 06 Jul 2023 05:33:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688646831; cv=pass; d=google.com; s=arc-20160816; b=WW6edNOS6DZYeviR8Z/WQ1NRdSeOP1jOedPWH2C+JmGHXet7FnFoc8ccM3DhSkpiAU iE7P7KLPf0aaUJe8b4xL9ZrzXO+lnTuV8+8bo+7XBsoT7TRaeD1H8F7YZwbkuhGrNPPu x9cfOm94jjXuz+yx5eF+ZytX+QRV2zH0uT/84kxWFpT82iNb5y4j23XfKsDb3cSXLVLz y8FP23yeXHE/jk+zwTWzI+pFvbxeBC4K8SoSG+JV3Ru3KgA4ochNdLr+Jn4+wl5gPtEI w5y/CK3B8mi7mjGYUzj3NJB/AIASZn+fQ8XGuXgbqbOdGdFBLGbmNlCYAmDzDuUPHUtl ZS7g== 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=K1QJOnv0L/kXb1i7P7/EaFdEP4hTXsMvzzi3EjjrNjU=; fh=JxBGot9+rHFWo3OLvF15NYTNyFN7I1qxqEpaTsCxKjI=; b=QAlKd9SxCuH9M56fYEO2vnd6Qop09bTwDUsRyJqOss7y9pubwiL1/gP4aMxqgdFS0E u3ICf/nDpMm7JdVG9IqNjJKwDEnQ1r+w0fe4Kooqjm+cPF1OGpNSo+RRjlMWnukZyLth W5i1EWtUqApBD5ZBhlpBkMvGEZL9rlkfy6+A4Wck/h3g0Vw3NCvPFb3m7Rw1DidPkmom 5ZDBPMU19Cbz1WTt56pfJ2HNwDFyPdR4ZVv1oe2YxUSEG3rMS0Rn82rASeBU6K1+Y9SJ 0N2YP4jXpuJdxhvishKDSKb5mA8QSlEfMK3fICrkyoZDsMPPTxwrveRqecqdV6zu5xNq xOjw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=BZXRK8RL; 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 t14-20020a170902e84e00b001b820de73bfsi1296421plg.229.2023.07.06.05.33.38; Thu, 06 Jul 2023 05:33:51 -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=BZXRK8RL; 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 S232723AbjGFMJO (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Thu, 6 Jul 2023 08:09:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbjGFMJJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 6 Jul 2023 08:09:09 -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 2506C199C; Thu, 6 Jul 2023 05:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SXKnyRnepurAxqwyS8cwGPNkFjaSChJyocf07UNqPfPH8vxdyuc9EBHGGlJbvKXfKkW3W4UaMYz+j9XdeyJ7fIPaWV5o03JVfI3qL6k3Mf6vxOcm44fKloX20wW70iye3Knycs0josY89pyAQCvKkNw7BcwXGHQTdjz5iI5/H3cWy0NIA5b0+S2wY28aLUrcAR/dGkXq4FD5iExrxXZxl1aoI9DxzWmes3g69I0FsRnXIPCxIJ+a7kyewx7N+SmccBQQZmOfe3uDpXv6G528f3GA7vjxDJOper2BUdcAy+rsZofJXeow3bOTudIxRCSFRY6wpsbVkX50Ok78Km7aXA== 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=K1QJOnv0L/kXb1i7P7/EaFdEP4hTXsMvzzi3EjjrNjU=; b=TKo7YEc0hESNTNTjn8/siSyzyrOGAqSCrrLgpPaZEE2JqeBOnsVrwV5sjVwSznczJezafgN3IE64hSfpvMJtsR8+NstE2wVBuAoxzBoPLjs8k+SGaooTkpFopXxrnK8KxTfG6NJ+XbeMUpQUsvOg0ZhI8nTa82C53RMJDBr5ckX2EETWQN3pkEYSky4ONPh3w2X7J32+3MDFQCSys2VF1Pe8TsY+Xw+8Su+JRZbzwOrXmXi42Oe92fuK1xu5h1lxDU9UL6yl+/SY7pHOEtnRbICse6st0YurH0LM6ux704ssUeT7TNYNjyr6WeKj2bT0qYX2T9OupRwnB2twHs9ZWQ== 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=K1QJOnv0L/kXb1i7P7/EaFdEP4hTXsMvzzi3EjjrNjU=; b=BZXRK8RLOhh2IihiLvgqjAUElp7IjahjPARLNRdwx2FHgbocAjGp/zJhyPKlvVXffU3FAQRYwTDTL81RerPW/U82aQKX14AUXrE/S0RGXL1kTvQxY6xB2ng1ofReufmJkBo9mzicBKCsW0GMJKuRniWpLpEl6090xXKfPBYWE3lbMho72NxjJbgUc89XB6ACJQlD0/BhZoKY/PweN4Y8puZFa/bxQK/L0wFK27eaCoD6l+LGUoAiDARnwtcmP9PRxXC1gziHtD/WfZEodgPFPujE4QuCpbzwIX/2GY+MVdo89j/trRuZLoHsmrJ6TaudgxE/VfPlriRqQVw6oll+ZA== 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:05 +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:05 +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 3/4] net: wiznet: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 20:08:49 +0800 Message-Id: <20230706120850.11026-3-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: 25e516cf-3abf-4727-f9ce-08db7e19cb23 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5PJaEBtglH1jdGXqbj+Sr9IUk/dkuaGpMX07cVxFax7QcGMzdsvBUh4zrvnFiOkfSA3M89qcBkWHXXB1OQKariH/Ai0sK4u2di+gMqFrVTMCgZfhVEY7NyQO+P2XgKNVrfE0NQhzgwTxWpzYK5EUQRWDLT4AtekxVTuvvRSYBGoxnC3h3Cr+OS9ZY9rmbcBqu8X6ejojVEhL0zVYziS3fAzd3wlQzaTcgZ7LancjFSwAhG3+nTq2bI1r+HdWv1fhmhlXxMkzFQZEElwfDv4klQHdIx2PDbUR+eLKPyJ7zyMG8heFbgg3HMaRc0HFl7aGEn19pPRC6/Mfx1wm2hlz1tQtXO0MAxJg0J/Bl7j2a+4gS/T8DqjDIVMNtX6b6SLh/OPYvN4OTn5dVhAl0D8YLE25uGqmYz0yqtIPgkhj/qfLWTB5z24Hal3wG/qwpuz+axjnivjmOgwtp1Pguz0S8eLyJmnmaXQrOBuSjr1QDnRi1+AVN3i0bYJNhqRdNHbSp6z2MHFlztpBOFi1pVQVcKsxyBQ7mPoC+p3h5F9fMyyQV6B/7ts1iA8OWXdccFBi77q3Hu6w4Yv5FxkCcMyCEtqKc1uUbpW975M1ijqraj4VmcP0wmX6jnzzV9ZWn/XY 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: Aqs1ByKrBDdPSLRphVffx0/V8X44kDnWkg0JGl6fmRxTCSR3JdQdEZUP+4DG8rsRVMYWvcdEtO1fmr/ouGS+ia3wl6UweslUFKLinuTDP12eyC7QO6WRolyEDdp/jpIc69aUIEAkNAnoPwiZ64D2UXwnMSiobZYjP4LMtUh/Lu1nPfPy2xjecOSwjaqbpaQ3F0yiqJudgoDZbbrrwwbYtQzqomQibR6L/XE0ksSCPAtTq0H34Dz4dllT4TtFOpP8bDe+DOenvUn6LiqUxNaebZ0NCGuCdh77t8GBVKtkMSm4r2rWOLNaB6hUS/OMTqPi7VoOUagQJQ4NLX/Vk1aeJ1KrYFgtROsj4NigZk+2WfnABj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+YerZFzlTaO9WK/fE61jbNo2IIZytrlFuZZl03rcAh+72LlkvXhEjNj6q43NPGus2QW273rzllncfmNrdnmSZiHUJNHwfzIs8ikIaCn7QI86Sd9zGBhPTtbRxx176HQSAj/9KCZ9MlCpXcPzRgPxAmZwGeWfbtch3J5z72oSH X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 25e516cf-3abf-4727-f9ce-08db7e19cb23 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:05.2457 (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: YPoIc/d3V1J8UmxpAI/1752AgwLTJMY9mW1m5ggruZ0QfybPL7UxQt+7fQH70UKAl5oRp/5SfZVXIZiOZ0vtAQ== 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?1770674540217452265?= X-GMAIL-MSGID: =?utf-8?q?1770674540217452265?= |
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/wiznet/w5300.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/wiznet/w5300.c b/drivers/net/ethernet/wiznet/w5300.c index b0958fe8111e..8ba931c98435 100644 --- a/drivers/net/ethernet/wiznet/w5300.c +++ b/drivers/net/ethernet/wiznet/w5300.c @@ -539,8 +539,7 @@ static int w5300_hw_probe(struct platform_device *pdev) eth_hw_addr_random(ndev); } - mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(&pdev->dev, mem); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &mem); if (IS_ERR(priv->base)) return PTR_ERR(priv->base);