Message ID | 20230704120211.38122-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 v5csp1172494vqx; Tue, 4 Jul 2023 05:12:13 -0700 (PDT) X-Google-Smtp-Source: APBJJlEKo+tDZuJIXhN/RYRZOKn8HK1jNTZWxDARfLPJQ8P25kGjA8iBfo2zCBaVw7+fgqqkrrw3 X-Received: by 2002:a05:6a00:39a2:b0:667:e17e:85b7 with SMTP id fi34-20020a056a0039a200b00667e17e85b7mr15199694pfb.1.1688472732678; Tue, 04 Jul 2023 05:12:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472732; cv=pass; d=google.com; s=arc-20160816; b=RfpjKC4WeW3boQCq5Sy8KwCdFy4VuWI7x4tOWzzkPNprEu68AA2ueRcR3ZKcnOphKV R9lqr8GiQoop7IxGWN3D8LbBExSW7zaAWuJqSTIVGPLHEOCpppmVuOZGhnWVPSe2hUyy CY/0aIWfcNieB0bUs3JeBWNZxAmzrUALsHE268iSVo/x3aQznV4s/3VEa28coJCi+B5S Ko5NwGuFnAFFoDROQu7yUyleigCpYtJ/DrzCemTVa8WXl8WGOiZ3pSePMza+8BMVZdhZ tRfwDt1PIxu9HIWNOnt8PPhJh9MLiaqRFCY2wlww14+HtJ4DyK6h08vTM84dYjepwqr2 girg== 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=s4qH/EEc772Hh1Fa91uEXK3Fyy2YZ1pkJB/En7fGXK0=; fh=wDX34c/hR55SL6ZxtyCB4wjHkoiruHhcgF0w1N7Mymo=; b=OZgbqheUDUQkbK6jdnsq7L3pLnlMdc+WJFjfpfr0NWxIV6i3nxm9WIid+cioT/wJOS moyRUP0EZ2iq0DC49ZAYlKcyn7yh0izomwftLJgY6rNOYwu0qWwV2wDDbvkH2Xejc5kX h9Gr0AJCkRRGAHzxG/GU3wD//v+DXehRIGMWiIjhzkPLaykWF+ztYV4irsqDGgtuwLwk h7tL1dG8Quk4HC1mZdc22AtB2kTQuUcbuiELZ+sj/J+zA5u5DKWnZI7/1hTfCGoehbxg 7umS/L5YLVTdQDWO+UbFQNUV1lxsQGvOQZ7lf18pBb8kYuQ8N8yifCkTXoC9KwTKVMoB xI+Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="h/zvBnwn"; 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 fb3-20020a056a002d8300b00668230a86edsi17816559pfb.256.2023.07.04.05.11.56; Tue, 04 Jul 2023 05:12:12 -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="h/zvBnwn"; 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 S231174AbjGDMCe (ORCPT <rfc822;tebrre53rla2o@gmail.com> + 99 others); Tue, 4 Jul 2023 08:02:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53334 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjGDMCd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 4 Jul 2023 08:02:33 -0400 Received: from APC01-PSA-obe.outbound.protection.outlook.com (mail-psaapc01on2090.outbound.protection.outlook.com [40.107.255.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2AA89185 for <linux-kernel@vger.kernel.org>; Tue, 4 Jul 2023 05:02:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HLDcFx6by+VFhhQOK/0ooZu4ezNj+PuXjOXF8j4w8QM+8x1VhUN71qFTVi+7bD1uYXzYviS6meVmJEl6vE/K2Zmxz+V7YbzHNhd95GgXP5tRBPBoKW7dhB/4D/wbLiPg8bsmF7AY6gfrug2ZmogdD6Y3oyzC1yb7ibdrd9r5geC+QJjfUoITPewVHVgurofVCFf1jwyz0wquJq8s7ir0HhjBkXCZI8LmDpUcDZvwcWr9kB2zBfaQDNoyXzqJCfENCh0P/LigG1SS/FmdCMxy//79yhX22l2VZCO0VLeKJQ/l4yxYD0nz4LoGOEO0WSDy4mvBFFmfQDxpwRzOlSeUJw== 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=s4qH/EEc772Hh1Fa91uEXK3Fyy2YZ1pkJB/En7fGXK0=; b=P8/UddceVDRf00hNco1Ug8urBi3e/w3HhuYJ+vFxfQNDq7PZtWN4SKiiA3mYByENc1Q96NU5FrjCimWmw+qwohR+XFc0WKKYnys1/B70F6vZfZr7TlZdSlVifJSatUTLqA/Rkly5BtJft0eJn/WKjfSTkXx+zrEKROKyeSB8l4EVBBICa/gfJTK+n7Quds7MnXG2II5QxpRKkuIW2sqF3lIec6Q91UFZOcdTYQlUmxjmioLdQATRwKVm/2A2PsPiwn2WEz6SmiaXuwkVr+bnjxefxvzrlDUFrqvBFfW5XFf9Vmys67z4MKXRcQdnj1fLOQEkCeU4zKTzQMaeZ7A9Xw== 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=s4qH/EEc772Hh1Fa91uEXK3Fyy2YZ1pkJB/En7fGXK0=; b=h/zvBnwnsOfS54rwfKR6aLW6KtbluhT1W+j1dGK1+TRg0tlY+Y5agLyvIqVTEvu7OM46O6PElBT4agyOg06C3Bw34D4nYaREe2CxPBFGPPZJO67HppNkBpKOupksgW0lvyXHE0z4aihk9Nblh4gOnTHatHB7gtWHOoyXNrH/JQHwGyP+Rui1PfLfFv1dzlQeO5lycBG8A7NPzIcoI0xzVQKmF9k1/bStnsdlrs5GtM3hXUbep7FbAYrASN3kpKIUwQEoepMJoJsiBLlO8j+sV05L6EIbgVFwPX3496ri5Kk45VH9tb+eDIytb8qoCtvXQ+y2Vodv6YDtPkYfVk9V4Q== 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 SEZPR06MB4999.apcprd06.prod.outlook.com (2603:1096:101:4a::14) 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:02:24 +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:02:23 +0000 From: Yangtao Li <frank.li@vivo.com> To: Philipp Zabel <p.zabel@pengutronix.de>, Florian Fainelli <florian.fainelli@broadcom.com>, Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com> Cc: Yangtao Li <frank.li@vivo.com>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] reset: brcmstb: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:05 +0800 Message-Id: <20230704120211.38122-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SG2PR01CA0144.apcprd01.prod.exchangelabs.com (2603:1096:4:8f::24) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB4999:EE_ X-MS-Office365-Filtering-Correlation-Id: 7c64e55f-a4eb-447a-7054-08db7c86867e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WYGGy/o9kuWkNCWDNO+bEYmpadWG5oNTqhyNimMXDvnuhQRxbdcUbH1sUMZJQVb+dzekXoME0RQaj3JJzE6Xf/JAZpZja3/EtOyi3olYdZ5DEkvGYu3yRLiQxk87s1KAIJaDCLspw2/2JwJnVvUuuPMzGmqtd+pvKdgCZ0+3TzbmP2uuJp4HwvR/P85/hiED3KtSZt4Ew9bqvdn3PUDzU54whflS53iwyvHyVL8eeAxqhPPIf5Ca97ZwjE7zh6bfndyDHROaCTJEO7NS5QtvaGI99L7zuTOwjBXo5s61y9EWgt81FfO684+GeG/OPX5Z3nOGeUHFi398ueTQAOVcvOCcjFafm/umMBYkZSbu52/5U7X31I7M5wrJeYUnMs/U8VWh72nQXAm6j7EwoI8pqBgiVlafk2JYRZ4aKsqrdaXzk6iqovKEuPjEWMrua27dO00aQyePfw3x3oMvBmsWY81Ho3e2uwYaydyReJiKJATkBvOBTy8Keq88LOBQ3FhjfRnkgVCiyr/s5AtRa309PUEQmC9nfBICsKi1LNSeEcXIszleqWAI55bv9+SBKXXo1CLLr1uMCat41MshpsYnEN2/8MPDmL5VCVc5NAyGGk6HeXcOYzBGi7IlbBj4sjTtvgzWZ6pSOkSHTzQ70TrX0A== 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)(396003)(376002)(366004)(346002)(136003)(451199021)(6666004)(38100700002)(52116002)(38350700002)(2906002)(4744005)(6486002)(8936002)(110136005)(8676002)(36756003)(41300700001)(478600001)(5660300002)(66946007)(66476007)(1076003)(6512007)(186003)(26005)(86362001)(6506007)(66556008)(316002)(4326008)(2616005)(83380400001)(133343001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6AcaqFYe++UKEMzY1r23Ch6dVUfgmknH4xdO7MFVv8AbaygdHbvJ8hX+zeGNKDez9uZTMpknsbfmKeDzbYQeyzlQSnc3ZXccjs+XuVrh5zON2ogN7slFfh8cnYPlXhqdPSZG0PUai7ViXAvGsmzsb4kRlGoiK3hjAViCozQ0wVOS+6cPbxONJZLZHRVnRCnbC/RlfmaN+UA+h8/jbcYhrrZQ136wQbaxU4MNvf9B6ki44DOnLt+D1yAs8jvZIhFFrDQyXx9r96k6XuoWzokR4Hc9EphlCk31+ys4/oy4tSDgsqj7OJIRiOHoHtXxhW6WtlRR68IyxdHJCabZ1q6KHKleckEP7vF3lcG3VdpRzjlVp09GMJ9TuxeY9uHN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5MSnta2nQnyX0m7f6AY9l87dPlpz1fLs9leZglhkBIjkT2Fniq4gHG6/qdxfRYfAFJdxt+SzrX6bwU31/c65KcT1iFmTcnIW2f1GQRIObMb0McIW5wwcmCu8PashZuc8faDOQo X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7c64e55f-a4eb-447a-7054-08db7c86867e 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:02:22.9385 (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: HnKDMymO2nXKNzI/RVAxHfv3uFO34dFUaJk5jLZr32ODoFj1pqMeyVovml6OW1N2a8r50I6ZBgMhiElYqe/BwA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB4999 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?1770491984102404066?= X-GMAIL-MSGID: =?utf-8?q?1770491984102404066?= |
Series |
[1/7] reset: brcmstb: Use devm_platform_get_and_ioremap_resource()
|
|
Commit Message
李扬韬
July 4, 2023, 12:02 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/reset/reset-brcmstb.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
Comments
On 7/4/2023 2:02 PM, 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. > > Signed-off-by: Yangtao Li <frank.li@vivo.com> Acked-by: Florian Fainelli <florian.fainelli@broadcom.com>
On Tue, 04 Jul 2023 20:02:05 +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 to reset/next, thanks! [1/7] reset: brcmstb: Use devm_platform_get_and_ioremap_resource() https://git.pengutronix.de/cgit/pza/linux/commit/?id=1750ec405933 [2/7] reset: meson-audio-arb: Convert to devm_platform_ioremap_resource() https://git.pengutronix.de/cgit/pza/linux/commit/?id=66a1f3929a52 [3/7] reset: qcom-aoss: Convert to devm_platform_ioremap_resource() https://git.pengutronix.de/cgit/pza/linux/commit/?id=3d471cfbf26c [4/7] reset: qcom: Convert to devm_platform_ioremap_resource() https://git.pengutronix.de/cgit/pza/linux/commit/?id=49994d704d39 [5/7] reset: simple: Convert to devm_platform_get_and_ioremap_resource() https://git.pengutronix.de/cgit/pza/linux/commit/?id=ac53e621d802 [6/7] reset: sunplus: Use devm_platform_get_and_ioremap_resource() https://git.pengutronix.de/cgit/pza/linux/commit/?id=5d587019fcca [7/7] reset: uniphier-glue: Use devm_platform_get_and_ioremap_resource() https://git.pengutronix.de/cgit/pza/linux/commit/?id=c64548122968 regards Philipp
diff --git a/drivers/reset/reset-brcmstb.c b/drivers/reset/reset-brcmstb.c index 42c9d5241c53..810fe76452d6 100644 --- a/drivers/reset/reset-brcmstb.c +++ b/drivers/reset/reset-brcmstb.c @@ -90,8 +90,7 @@ static int brcmstb_reset_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(kdev, res); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->base)) return PTR_ERR(priv->base);