[1/4] phy: marvell: phy-mvebu-cp110-comphy: Use devm_platform_get_and_ioremap_resource()
Message ID | 20230705090126.26854-1-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 v5csp1742516vqx; Wed, 5 Jul 2023 02:35:06 -0700 (PDT) X-Google-Smtp-Source: APBJJlEESd1teP4+oBAjSlLbpMIT3AWh8SqILxKkSpxupuDrPh/Glfy5rjdaF/jvyvSJ2tyd/RTP X-Received: by 2002:a05:6a00:2292:b0:682:5a68:983c with SMTP id f18-20020a056a00229200b006825a68983cmr14825418pfe.34.1688549706157; Wed, 05 Jul 2023 02:35:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688549706; cv=pass; d=google.com; s=arc-20160816; b=R9ODB7conuWhHmpQfr/gx8DXrh6kHnjpVLA/1WQJEMTG82wlPl99XRWWGyogVTvvCU Tjbok5rfyieF6FoP91Ryt54ZY8YSFF5DtcvAFdqg5RRI+JAB+MgyeqPS9P8MbYgU/G4d zUHiOgfqRexszXjP8e99vAW1XKm7OWc16asRQrCOPQxR6US4H3+mq2kE7c3WrjyOZlqM IJ5ukhyZGOrn4gesSxsTl6n1tA2c5z8RHNrxhpaLK65VPi6VjxvMXR66XP+9SfUzssCZ W6tfACni4Nz0NBhegLV1Xblnx7TEy536Knie5AhiYHpA1cu/kaA1AOt8YVePhMzjpSbY wZHw== 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=Bi5MN2Lo1Xh02TYYVOUmZNbL2ihcOvEZTo6JAy8MYTU=; fh=IJP9zDKpX1iEnXFZXHrXp3ftQr7mqtXJn2ssOISM/B0=; b=XY2TExDM2i+LknF1mTJKL8slUSSBDczOWFPxQUor/Xe6xAs1ewC6pgTcY8evXJqVcB sD/MymX0qYvakswl+bg5KlGMdFOaBAipAerTlHcmWDuLngMFw6MgB3ACYzui+tolSdZu NgRlp61PeLdDGh6bPTO8TvrB5md0T9POdvjhKbIXWMHytFn5JVeDmfPKft5Rj8JoG3Yt LMlKLOkYjWD2VqWILzc6r575HMPS71XyBkVRAy2ItvA72G2E5ruilluGvc+txwrjZVeS SBlMBNGe8b0VgaoFJlGyZyi/ny6NS2SI5nHMMuZb3HN+F5gh1eqsDKSnLQV61HU4ratr fZEg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=RPswE7d5; 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 z3-20020a056a001d8300b00653c0edfd34si12271640pfw.139.2023.07.05.02.34.51; Wed, 05 Jul 2023 02:35:06 -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=RPswE7d5; 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 S232041AbjGEJBn (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Wed, 5 Jul 2023 05:01:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbjGEJBk (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 5 Jul 2023 05:01:40 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2110.outbound.protection.outlook.com [40.107.255.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9F42811F for <linux-kernel@vger.kernel.org>; Wed, 5 Jul 2023 02:01:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B5tV8P+icU5MNpe+Yu8IioQJ2UqpMHgIJqw7olbShCUOlAhjSF6DW8NwCcTRWiqXixAuzzL/eCZqe6UtKpJ7D/evCZqwfFcYydm/Vz03fkhgOcxiUgKVr3K21cmqqCkd2gKzz0H5Trptuq75/M1U7euPOz41JKZk80fySPcLuyKu1E8n+pThPDEptsMkeykKeOl/nfb+UjTse93Ap7PCp4QBlHAiv2O+5fe6Q75JDm+hCddztaOql+1vC5Y1kjD9kC6b7LlB1T114b2+H3oqYalFt9Zp7qSY87984Gph2TLVnT7BESmMZAxJDtLju+CK1s44MOj57h9LQxR4yuWnWw== 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=Bi5MN2Lo1Xh02TYYVOUmZNbL2ihcOvEZTo6JAy8MYTU=; b=RvmJPcWD3oMEboOoyykuNBfE3ipiCOrTmgqgdppyK8LpCOZMIFtGVSKoRZS6MMhz9GQ4s8EZVL3AWOKWDZVVk/qHajcrek5sxNiI5g6KQespaxOj90J7VeTuhlRAXO2Mw+TzsIWh93wnaZz3ag4vZWi8qCfNn4/DZaQnklPzZ8ONxF1SkM2X36CWU0NvbC6i+pwcoCD9rYmLWehFGLCoSStrS0T6h9c6Y6wkHucmOTzdLpWqp3XuQ++lmQOhfACq/gIDsXS0+w8cQaFp1DrsdR8Dj5aI/wapy1oE3K2C4+bNHBuL2EOSE0iPg8TIk3FSpBT1CSY1QDxpMeshDIbpyw== 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=Bi5MN2Lo1Xh02TYYVOUmZNbL2ihcOvEZTo6JAy8MYTU=; b=RPswE7d5b6Vd9Hoa1X5z6wAyrtZyy/1f0f7QNSWpb6myRvjzt7Fcp0t4xKt/IJnZvdQvpHf0ZuPQjYpAtCJyaioIRO8kI1CF9gFy+IZO4ht6wOdJZgmfRpHPQR7yrqr3uMLYDyCAADjrLEVZCYsy4cu+ZSeVyXXP9GIKW1WAg/+PFY02YHNkXtRhJztmfPiEV8HaBr30o7n8oIeggX7s/OyVnPVRn5Vfkti66FFujZxRVkCHwFQTddGgkF2jpLf0bEG6AbbOjYwYOJUiiUrJ+cuiHQcYNO/1YHvAsveyLMj0Rgc0/SuFyRY572AwoZ5xisO970kEplemugPj7T7O1Q== 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 KL1PR0601MB4354.apcprd06.prod.outlook.com (2603:1096:820:79::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6544.24; Wed, 5 Jul 2023 09:01:36 +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 09:01:36 +0000 From: Yangtao Li <frank.li@vivo.com> To: Vinod Koul <vkoul@kernel.org>, Kishon Vijay Abraham I <kishon@kernel.org> Cc: Yangtao Li <frank.li@vivo.com>, linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/4] phy: marvell: phy-mvebu-cp110-comphy: Use devm_platform_get_and_ioremap_resource() Date: Wed, 5 Jul 2023 17:01:23 +0800 Message-Id: <20230705090126.26854-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR02CA0031.apcprd02.prod.outlook.com (2603:1096:3:18::19) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4354:EE_ X-MS-Office365-Filtering-Correlation-Id: 2bc4023c-0242-4600-7031-08db7d366fbb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2nbYAh/ljXdWpkVwx0Lxou3fWvBMqNSSIDrI4kxf4SGSiz4FNOaUGG7HnkfONWRHMHLivbKjZ431F6YFXR48ec2eIoTJJfd47PPeS8k05LCWDBYwdweXKMZkoQnUwAjwRiPq4H5GMjjDQvr5o9jZK7gm300RFJ0vrVp8xGj+RSOYuv+f8B45c4FkTD/f4z/fc3G+PlWQhk1WuHo5EFzHGhEWswZgWC3iTdK8lui4Aj9JsCFSio/4vRUVZP42Hm4z4aYKA06Txc2OVSZVVIGkhVJUsPaGO8r8tvGw0h16ryNSacE6r4la9XrLFzsJlN+bud6199JtOevJZcfjTFW1zAfSE8AoUoP7e0VcOQ8CHx0zuNC9AnS9PMsKosYnKfgXEsSk3PQkHg/1KUVZCnWnryjVH2eoF9eyCE5iYeFqnyE87uSpSl9Ijsxp04DoRE9AlYcDmDcYQSSaGubf8i7Kn8Aczlnon+aPetjioklFLb+tKoXBEQC+kVZvJ/aukNnK28uRgoSbkgw7eh/lZod3EDd9W3xVa5HFUPkHeYThTOECJkuyvBDvBQSkqqQr3PRSbJ9Fcog3EpBY0QrQ3jDQS7xRQiv9NjS5SE4VT+Ld7hGI4dQVT1ybfuAPTJ0w6oey 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)(346002)(376002)(366004)(136003)(396003)(451199021)(26005)(6666004)(478600001)(1076003)(6512007)(6506007)(2616005)(186003)(38100700002)(66556008)(38350700002)(66946007)(4326008)(66476007)(83380400001)(110136005)(6486002)(52116002)(316002)(86362001)(5660300002)(8936002)(8676002)(4744005)(41300700001)(2906002)(36756003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: CQpjogTVyBlMuMEzojRZwM04uKhyJt3R3/3maLZJTpjhxwxzgDFYCRK5LaPBGRy1oGJRYDihzYROhnlb6PWKg6h8T6BbLghySK33E/FnxI7tvnQZRTiTvu7WZkvyDl8zpX/Tlb5aeWjh+JbiBVoEs6dZTAh99yf6Sj9Y107CE54YynWBn1JUG/FcFUliEBVYJxxwFYzm3WSZQgn/4alK1vuqQfizsf18aBMa5aIeLfxeRRqGhWJxuKqQgRPEg5dDk+VSsouIY9SISn3/0NUQLf6pHAwIKOBKRZioaSJyoAI6NsLGRSXBacm2+XPGk6X1Xcv8pK58gPOrQME1XDxBDpaG0PPwaShcdXV2O/Hnz6Ng9189FCCGvVi3AA9QaKz6xogc6nuyWcX7NKSlQZms9Hc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LaInlb4VHJK5cbplocZhpFewfRvmpfGiyECzoK7K7SQxGqNT9nGug+otkU7exREAw9kqI7RRJ5ug4tt07cOOsu7wS8XwWpCLnUQFbISGxcfTSeOfr X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bc4023c-0242-4600-7031-08db7d366fbb X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jul 2023 09:01:36.1480 (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: zTUBNuaHCtn+8+ATV3xiNWVL5FT+7D7FiRSsG34Wsw+MW95FLgWikmzoGDIhmjCBXk+oAtCA2+ZOT+cULjvDtA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4354 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, URIBL_BLOCKED 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?1770572696514323641?= X-GMAIL-MSGID: =?utf-8?q?1770572696514323641?= |
Series |
[1/4] phy: marvell: phy-mvebu-cp110-comphy: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 5, 2023, 9:01 a.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/phy/marvell/phy-mvebu-cp110-comphy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On Wed, 05 Jul 2023 17:01:23 +0800, Yangtao Li wrote: > 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. > > Applied, thanks! [1/4] phy: marvell: phy-mvebu-cp110-comphy: Use devm_platform_get_and_ioremap_resource() commit: babfcaf544d890fe96a54184ccabde9c2afa520f [2/4] phy: rockchip: phy-rockchip-typec: Use devm_platform_get_and_ioremap_resource() commit: 161f7ca9455c27eb0d228def6516d73a9cb841bf [3/4] phy: renesas: r8a779f0-ether-serdes: Convert to devm_platform_ioremap_resource() commit: f21829b8b928ca2aedbed839ab9dec5d079c42dd Best regards,
diff --git a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c index 34672e868a1e..ddaddb3c498f 100644 --- a/drivers/phy/marvell/phy-mvebu-cp110-comphy.c +++ b/drivers/phy/marvell/phy-mvebu-cp110-comphy.c @@ -1011,8 +1011,7 @@ static int mvebu_comphy_probe(struct platform_device *pdev) "marvell,system-controller"); if (IS_ERR(priv->regmap)) return PTR_ERR(priv->regmap); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(&pdev->dev, res); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->base)) return PTR_ERR(priv->base);