From patchwork Tue Jul 4 12:02:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115731 Return-Path: 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 + 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 ); 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 ; 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 To: Philipp Zabel , Florian Fainelli , Broadcom internal kernel review list Cc: Yangtao Li , 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 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/oy4tSDgsqj7OJIRiOHoHtXxhW6WtlRR68IyxdHJCabZ1q6KHKleckEP7vF3lcG3VdpRzjlVp09GMJ9TuxeY9uHNVVhXMpa5v6FkucyqNIdSC2RacUWP2shmmDvUVl+nuOjYGsXxwfZc2ZpfPoIRka8LXUGDcdnSykCM3wc3ZtDTHcXyH975S7jMQ/sRhIIpdD7KYUwaZMyBOIxfGWbFZSZ2wkVos9MgxOAnAayh22LfL5jWnasHJAQJopZStAvKs8qsSQ+pTERbPO6MPgjxUyOwFvy4EwIwdJIIuzCgbYFm332KwDILbxvLZ+j//cluGFNlOeF1RUlYPjdFyOuYETRbmDY5R4rPqsHUiNkU9cdiOQTQ2WDpctmQrGR7AkPTjH/kneFjM6WV2W0FrYUUwaSmbUK9QIG8y1bDJUvFaYU/jtuJpAESmlP8IcdEvpLRe1hkrjYgYb6ZU5vwBnI3RvZx2Qm64PCxD8yKVomhKTFBwW5T3OpY9s+7f2MCVUlGR3Y1/2wftP1CarD54OF9m/Iy56S9G+M5Rcj+uzToBWex3p6brKQoZGFRAmAZLl1WMuBvt4rDNc3AhWKEq78yVspeQwa0xINvUlkfzdaloUc5e2vFqH2TfbzRus48KU92eG1xDuxqZa0OERE2okM+Aa0YDUfboi5L/vKPffP3+1yeThBo6ROO+lE38YQPnWwxvhGA3ecUzxRSUZV86mNDVV2eR1QdXerY3+K5buSRNT9hBrIuetR8dnYtMg8KSxvRHJBc45xIdfsmjEN9dwMbbnxnv4ShFP03buTbnSj0Fdex0ryOqGD24q7T5SkVy6YxIryE2L7MQklbJUBdTRsSzVOkG9kkuoJsy6bV6uqgWYaaTHel5Yks390nLetxfR2ECBEPDNoC4PziSvSMpGTusf2ZZJFvreD98FMtj272meo0xVDV8WCcG30zRCr9pBxNj7++6WgP+0gV1htFhRNR1YiDz3BwQFCSON4EMn9WB2C1KZPCkRyYyoYDA+hL3rLlIQuqaO3AiP2Sg2FJnXtfTlEFHu3tnz/pV6Xiy3eeVTKq1M1JghTczguDlG75qPRb2yxH9jOWDNfgq+5ZpcKR7Pa8QcFeUhzXHHjG6AJaJtfQ28yUArBn6VSEICUXituqIVI3nWa1fd+NSaqhUialfD5MSnta2nQnyX0m7f6AY9l87dPlpz1fLs9leZglhkBIjkT2Fniq4gHG6/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: 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?= 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 Acked-by: Florian Fainelli --- drivers/reset/reset-brcmstb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); From patchwork Tue Jul 4 12:02:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115728 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1166844vqx; Tue, 4 Jul 2023 05:04:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlE6ud6kkzt3hSItInmcKRSyoxwlwlS60HQoMuslCh0+Yq3ehGlbS60FiM6zk6rm7+0EC6lK X-Received: by 2002:a92:c88c:0:b0:345:d284:5c49 with SMTP id w12-20020a92c88c000000b00345d2845c49mr12934102ilo.5.1688472272565; Tue, 04 Jul 2023 05:04:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472272; cv=pass; d=google.com; s=arc-20160816; b=TaQVfxiY4R5lNk8vWazOOTIZdm4D7bCMs3BcjkCj1U23PsHKQAOCSzzsb5nhlZwKqC Ea7xWytfs30YSDwF1SbKVQPmWgQsKuIHHlgNQEm6zL860qx3iheYIUcwaFsy0f9i7voi NuDSJJl3kKIQQKnNyZc4eisQfK61bndCZi+jVIFsFVnAOLBXCO2GbfkekU42Ubc6ed91 MSKMnTnehAP+QVNyFRFzyYCHYelcXfHNfOGn5B83G8KYOIBdaAGMxCD5+OVHzt+nTMtz d++MNXT9IqGsz/seC3597LqJbF7xHRSXJqZDFyBnrHnc0pGMH13wsj2n2yKl8azj9eo8 HSaQ== 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=h5Yebta6240tO0qEIRa9JUM8K5FM3tzmxoh0F7aQ1sg=; fh=MLdUxqa6I1r/dv0r6dNoORk4ygpXbrd1JOFI0cyt+zg=; b=p2enr9XMpLPAxgOZkusAf5wOuSR49gwB34rr8W+/U7NLE66QA+Y319PDUKoho1a6JU eLPy8jD1neYOesi1UGdCpiGFRq+JpCQoncoEGIrP6NlqiFdlzXAXM0I4sRyWSqBt9fA1 oid3g/JxZMcVU/Z6Cyoy7cLY3Y7LRkD0BVgP5b77nMkEbqUQIAUAiGbhtiJZ1kH3D76C 3c2gP5QTRYqLDfCbkP2agZkQ1mrLZ+zBq/+Hq980ZdJf/bbJDfgrs8jqMk9VzNSq/L6L vSFhpABhHYBMVyxRT+Bo7/i6k5Sxd1kI2SJUgCVsfgcReXSXocDp6x1BGvI4J4Kx8ZNv uQMQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=IIUR6+6V; 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 s197-20020a632cce000000b0055ac5fed588si17105502pgs.154.2023.07.04.05.04.19; Tue, 04 Jul 2023 05:04:32 -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=IIUR6+6V; 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 S231345AbjGDMCl (ORCPT + 99 others); Tue, 4 Jul 2023 08:02:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53350 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230195AbjGDMCe (ORCPT ); Tue, 4 Jul 2023 08:02:34 -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 2E830185 for ; Tue, 4 Jul 2023 05:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BhZKTzbAKC3d+TwjxPuaqypkLBfwtEjnn1FlvqagdosBVH4nXpn6g50gZE9jaqbZIEKZ7BY6PcNc1J1gB4j4jVWRbIZDalRsCGTd+SvDPNiUU/AX6ezbptceeuQCfMUHOADZ4Tc5RgKWRHPC422yZSGWezH+w7bEdldl1uJu3YbLNU5seRN/+uV9hoxKHCrrveY8naP05uK1GD3HcDGc1eSosV+Y66mztMOxxZy2QZ12LKm0TeCwFu8oJQWjfZa5WwQUDIMl/4ZvlN0iNDX390Th8l0W/tjSnoXe6yFTNtCZ51HTeb0xVN8XWGfmp0G+MX6TnzS+DP1LEVtqnX8Eaw== 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=h5Yebta6240tO0qEIRa9JUM8K5FM3tzmxoh0F7aQ1sg=; b=dXJ37YFfuTZrItAgjyfzzp5RCKqFDUJ0ZukbsC0AzINpg/TjLLRGaB1k9XGoQzD9KBN8K8oW0whLMKIHedHo5CqTXWUfhIewYqufieJFKbb34fWotSwVEyTN65SUJkfE9ZZKH+b4JhFVbsIojMMqGia0CntIwH6KNzIR3xZcjPW8RathElgo+QPU4jpRiT3sYGCVYP5Xo2gjfbvgTjXr7+LPSBknq/QGUvQNcQ2YaBc6HFaGGWOPPgMhOLGct+ToBdTwzJOX93aOVf0M//WERYtppyG1OT/GptYuknnEzqpK2EnFknMa7sCciDeoNoy05CIm2q+eUfBszKo3UsainA== 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=h5Yebta6240tO0qEIRa9JUM8K5FM3tzmxoh0F7aQ1sg=; b=IIUR6+6V4GnCFAn5QHeT7kffciX2DPTbK3RAYOrsCjjdlxbW8/YgRjgRbyU5qd/Os62ArnhOjWWu4N2GEE4A8fGELS0ZhL8rdHtdNS/15Hx59ra1jLX8Ub6Aj12VLVCJqWVi502c7zytLUNYggH6hwDd4ewHVz+FEMZCbsQkf9YDogU8O/uASp1n1Uv8wdLjk8+N9HmIULcKkhTYWK7T1Rne/NxdPsrNp2hlAN3gHLGP0l4K8iPDJGgQfkFjM/unTXimCN+1cDrVE4hR/kxEoALpFazdzZ9fSCBuurfYk3kuEFaID/BHS++sDg7sY+n8bBOZgxf+EW71+FxdqXkdTQ== 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:25 +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:25 +0000 From: Yangtao Li To: Philipp Zabel , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/7] reset: meson-audio-arb: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:06 +0800 Message-Id: <20230704120211.38122-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704120211.38122-1-frank.li@vivo.com> References: <20230704120211.38122-1-frank.li@vivo.com> 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: b2b4d7d2-4a4a-4aee-dbc0-08db7c8687fb X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6S45b7vWoyVB77mEWXrDBbBq12WgfGjYqouNKSMGYAVZL5lrNL08wbOGXCpLNZeiAcA5H08cRGSF+aVhWlRWhKKqOt4BEJZKWliStzP3a8NFGI0Rs8lm23Bx1i5SGL8Bp3qNDuVtH0T4Ar/mr32M+P+8E4ewB4JcYNSvYBrFsT40jfxRCcbgBzL8ONrNIG4aoGNHR8JcA+RqEFn+kmzkG6cgwZARdQnkdNbZpt4E1YWgBHQDTnlHoYmCzVOExki4z52iBPq0KSfKDJFfqbGNkHekJ7c7lfcOASNBPciXDO+BscktAw2fs2BokGNADCw/YeLDT7um8x3zITjcUJVXm4FgnUeqFS1H9Q1JmpBZlgShUhly/JzGP2ypbXBjdadabX/uUpwB5gZZV0rBzTIMB2euqyoxj4GDz9l/BANhlc/h74uGe0PEMgA69J4ZOV76p2GK5pOdUkLQpGfjfGSGjuDY826WlDmXZAu8kbvaveXI315HU7ysO7NH1RnjcwObnNkZlkxApGpt7mYMoGOjpcSDU4s1qJV0pwLm8SIKIcmG1DyvoQjOWMpqQJ1CEeQI64JMQgAs3orESDHhhkCMhmYjgiQMO9vGY2y5y9NiWt2c5UJJ5z/UCIZQafAY4S97 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)(6486002)(8936002)(110136005)(8676002)(36756003)(41300700001)(478600001)(5660300002)(66946007)(66476007)(1076003)(6512007)(186003)(26005)(86362001)(6506007)(66556008)(316002)(4326008)(2616005)(83380400001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: a2ygVbU10EOzlBEIA2Z7VAV84Df72gYAVOZ4Dd2ZI+bbwSEOVBDY5FP+nrs6run7+/7ego/hQChwPmcgVClzw9RN/FMPzoGAbIzU084fNOMLu2DZAPmnHNJzA6B52TUq39alLp8bTZ/XytB5QZNErX0jXL66mhV073qbOIgSBs8uIbxyehAI3CqukSnX98XIKJ5u/ENUemo4wVlUeItHTZTJhJBI+ZxUKWF8cOVA8XSFymvQC2ZqzNBaVYGApvt1s5pLXIxClYqcM6TboovQo2p9m7s81FJFZXV0UNETA7Wak+WSnJXQsGDHa3gOyK+AJE11DjsZ010dqjIvT+YxNdOb4CufkH00CZcq3Mk0w7mQjDVSB7INawUsYhe7ha2UK9cgmsCbA+O9nqvk1w54Xp1VKKw16HquuBOqR3W8JMBkj1bpqMg8bpVSAP2CJst33QDIfcnnwHNXtyz82mVEHOwCS36RbFmS8qmVwK8kvP+MUcXtBBU8bg9sSCZDWJizyqF8YN5rUl5+tCSkCsh/D9mIeETG1ZS5HrF98gANIQpb5FU+COW6e3iTSMI9ntDBFw2IaBIbnEWK/vCmo85Nv2kodEqZXYGnZU19GMxgrIe8cNfBIYXdHNm3TOvsyPS/f6rLelA0OpYUzoetQ/MlwSb4JnLD/bMzxL6L+9efethM1D7eybL8MICEstZZ0wXbmKsPw9FGTsBfov0tjQx6Od9/cy6bXpa1ZWD4zB78RsajVeEMR+P2ccpJYoRDFMBmdADsPDwspHnwM4ANKO0uNPtbJfsFSizLkaXOIbo6owZSsEqc+3O1d4B8Dhw/nRicK/8uvyHJ7gkpXp8rf0zRNOPwcCNx5BYfMxy/PmG6UFfNFbQ0h9GyHiZBBuX7agNnf4TekxKevMgNs9X28szh/mSCHtgkL6jlC2Vl73ivzglc5Is6T+N59DomW5Yz+BxUH1rku0zupuax6UwvxLAGe0bOkCP3UTQK3LesAgtK4wnhdRErfOitY6f4PpTJTu1U/CWEk6IJSnPG0ameHrtWbEPK5ocANWAW0dlW6fl1Eg+l/uPed2SxdKG2cve0zpozDhaqBOetqLeTjuBe8SNaZDslMgvPn5dPBniEKVxcHu04W2LJ1YBYAXJ7VSB+pjQUQ+95j7YZoXjwcRMVhzWW4S5W+jXzxx5ZOV6qhYx55aznSbDBQA3OBhpoKqhUDnZ9WFeOK+4BvN0Yn+kUrWC0F62LBe3Vpk27zdc7f+rjX/xf7dA29SWLp7UzVOhs2TJhkHEGJd1vVJl1OBQk9Z9LKuhA4MIaUuV061QiHH0XgYX7+Nq5IaXKv135lVODbWg4+SIEcqOOEDFhxoW/ZMPV1VrPvtaeXu1FskfI5FAGZbnFPzlRqHqOa4Arq6pqKhBkl1cJSnvpLu4ebjyvcmn3NXoKg0q5RA7kPiMdg/Yzjx+feBsXE8i8wrgztcUE0ABYM4TDyq1Or/zfu+IqVYOvfXS5yYQyxCUYLVy+V3ldmf0RFJf7JJa0PmEOReGCviK9en9AXRDRrz0GcdRGBafV1gkbqiBqrIJ5hw1GoUXw88YolFCmLGeyfXK5ZHskLUWk X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2b4d7d2-4a4a-4aee-dbc0-08db7c8687fb 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:25.4239 (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: pJqnFfkwUotAWRQyjvZOTsB00gJWv2AenPN1owCJQAc00g3LcRwlCyoZ1ik+eVBKmysuBm8gkPeM77b09DWUeg== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770491501838922120?= X-GMAIL-MSGID: =?utf-8?q?1770491501838922120?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li Reviewed-by: Neil Armstrong --- drivers/reset/reset-meson-audio-arb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/reset/reset-meson-audio-arb.c b/drivers/reset/reset-meson-audio-arb.c index 6a3f6a6a3bbf..355e041214bd 100644 --- a/drivers/reset/reset-meson-audio-arb.c +++ b/drivers/reset/reset-meson-audio-arb.c @@ -138,7 +138,6 @@ static int meson_audio_arb_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; const struct meson_audio_arb_match_data *data; struct meson_audio_arb_data *arb; - struct resource *res; int ret; data = of_device_get_match_data(dev); @@ -154,8 +153,7 @@ static int meson_audio_arb_probe(struct platform_device *pdev) if (IS_ERR(arb->clk)) return dev_err_probe(dev, PTR_ERR(arb->clk), "failed to get clock\n"); - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - arb->regs = devm_ioremap_resource(dev, res); + arb->regs = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(arb->regs)) return PTR_ERR(arb->regs); From patchwork Tue Jul 4 12:02:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115727 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1166667vqx; Tue, 4 Jul 2023 05:04:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlEUCwElslKu92iqY8XbLh3xrIYKZxNt0uj32qhPQHYzus1QCnAfAjQ60oadU2lMumF4g0HP X-Received: by 2002:a05:6808:10d3:b0:3a3:95cb:bf2c with SMTP id s19-20020a05680810d300b003a395cbbf2cmr8797162ois.4.1688472256934; Tue, 04 Jul 2023 05:04:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472256; cv=pass; d=google.com; s=arc-20160816; b=nMQ1u+sV6gFzTc1XencGOT1GnnfzFvAsjnz+RGQ1rUQr+NBDNN5S4Fx4OSjzXaAb65 0iBl2ngu6zgGF4IfoNv3YsfIa0/3ZWiz89rnt0gwzmdBMTOFCa/mB1OSJaO71tcnjotv d3OHMYm52UVrDojDqjWiqkuHac7YZ1sRzHhiqWvj/nJ9JRQi9Nnnxff4Vo3S9w0gfVvx Vs3dG2Dek/hdLTFDuwZO6MPkmvIAfpRhwgtWX3KQV7NgztxSRK6WzZl/dRS+IUnP/7aa MqN9WThzHm9bLTsgPR47eDhLEM/j2RhSkLJrreM94CS/M0WcHnfYXiCDmsW2G6WsMjF+ 5wyg== 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=GVrBwZBniYy3cx6EBtbxfzPD3+zks+yKbbat22yW7FU=; fh=QEUE1GJF453d/FLq7q7FjWtj5CMT9Xhcq4HzkUVSxbQ=; b=RZlFAe2T3Do0F+FYU2A2L3PZFq1JaeBYm6kR2/Rc1+d0AanFMX2jD8c2B3t8/ddZ3R ihC7f2fwjfpUQ7kuteAZrlfXUxtIm2WmpmzFdL7uWeZflpFmnHbxKhz29X+mhrN+XCnn YRemb9aJVB2s9J+QfialH1bTW//EsC4VbrqhzXE00CYnNqNmDrH6QkRct17CvmFSjFlo wDTrRn0Ak9QMmgX9D6isOz9foE1+itYVGT9LTinSAkJftNj4MVT9RThAuxtvDLjidMn1 OzorleAuAzZJwycaY/3GSL7hRC7PA3QGAuUJxbZUxMI5X+HOU6Fu+9BHKdqZyX2tQIN7 IDQQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b="VdN/VS9B"; 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 p13-20020a631e4d000000b0054fde1643cfsi20777581pgm.127.2023.07.04.05.04.03; Tue, 04 Jul 2023 05:04:16 -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="VdN/VS9B"; 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 S231334AbjGDMCj (ORCPT + 99 others); Tue, 4 Jul 2023 08:02:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230492AbjGDMCe (ORCPT ); Tue, 4 Jul 2023 08:02:34 -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 F4023E6B; Tue, 4 Jul 2023 05:02:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PC+F9bmT0A9VWt3nbRO9XNFG3+MMnS8DkUgpuzLpxxahedcboXDfIkY5GZCQ0187jdAmokIfLeRNJrW7FIpbkR8glediELg98f+0QNfsP+HaFvgp4MiN9xlio93Q/nUNGvy5FxP8dFoMgQk2IfksYLfS2BoZ3Z6dvNAResJZ8kznTbwSCJ+2F++yiTPQt1Ezy6zZlCxMtlp4Vk2gE6C/3PifZFaEY8WJbzYGGntSAgW3pojDxgNcn2XgWBe3HGGhWtjCbJmCw1VxrzshwqoOLMJBCxdQlbmEHZzFrn/LxH6b3/TcXUsuVZ1WNheMLVZfNTcpjy7RXC1VtG647OoB+Q== 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=GVrBwZBniYy3cx6EBtbxfzPD3+zks+yKbbat22yW7FU=; b=QTKTbARYcLRVkKcdZn71NFozdrswilFa3EyfVyaCwFpoDiS9EQ7RKVvyaO0wz3opAFz/Hu0oMrrHlg3d/BTdYweFjN7HZ8KgIc7ajqOnfmPhcGttALhnePoO5CX8uSakmuiXBVJfOl/GoP5OGIYB+wp1XKl8mJGzoPPxcPGitK6GMXvIq/Yj6MRmZcmvpT685IksPnFBIXZ1ng3erZIONsePJv1g/vdfp653i95aDwfVz9gWjSPpvtGhUc15TTEDKYSC+ql0TgLMq3ap4WfsaAevsew82OkGdwMtZtHZHu1/Dc3Wt7Z/cCXitxxCm4UlHbbgSuVxpkGan2191IaSuw== 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=GVrBwZBniYy3cx6EBtbxfzPD3+zks+yKbbat22yW7FU=; b=VdN/VS9Bcl6rb2in80HSDuszatbD4tFW7bOxtd16WKQP2oNYjMpKQ6GoIIltn/8rImdOYPzBEoROQQxxyELT7tv7d/7bXAWWRl1YaSLNa0GxjWqXNTfKKslg36AFwvkdpDGup8zrwM3Cb7wWC/mHO8tcOc5jwTrI+ExFwytkHH99Ryn1BX7PSzS2fS4NMXy+HAk6nqoriiAmQ+EhdYFSF+lnkSfNgTpRAijAtO4DiayEXWa04fSmHS1ekWkdoFMGRYocQa+2p8/iFVm1cK4mbOt/XEMsLbvYx+wBFgCpD8eNvI1Utai7//wz2iDSPbs3IImbR3FFkLTanEATaJuqwA== 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:28 +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:27 +0000 From: Yangtao Li To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Philipp Zabel Cc: Yangtao Li , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/7] reset: qcom-aoss: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:07 +0800 Message-Id: <20230704120211.38122-3-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704120211.38122-1-frank.li@vivo.com> References: <20230704120211.38122-1-frank.li@vivo.com> 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: c9d5b579-2373-4a6c-2cf6-08db7c868947 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 54ZhvwdXV4RktlJKZsxcw0lvclZUiPxD7NYUfzAYJYwcV4wWfkkDBIvISk1HwTmtUB7m0jazunMqO4vwrK5CHf+EuS+vR2SCOYVNz5CXkZ/wtjONrHPkkW/+2+Cz6b852SKxKOgg4enS7Jeo1TVRUAq+1kM3jL+ceXCrHkkNC3/X/LaJEcvsS57kEFJBj+1gYTT4UwVbzOJ13s67gaAcwLMUiWvRlOzdck+y5y2J7E3ketcnQl7NRtv5jB0H6wWVx9LZYljJ4u9qooVyO4u41B1zCZ6A7PPMYP1MYGGY8OR+6fyFEcVQqaZNu9fzWnCOxeUHKg9euSS01O/QX9Gwuwm9tAyeFOo9Mp7TUHIGDt8JawRePxhnTLHIT5xYL/VHZcCDKjfcI9alC5yV4jHYfy3rtI+Edu4zIzwJteILwndSegeXcwBP2Tj+F1CrEJEPIy4Ttt+A3LuAWKJgohY2+hR1sSjY8lS6uRnHZIxHbCYnyiieLNRTit+ZfT2IZ5mhOlz1+/w5bjq1TMEbB2If2n8+cgl5+tiFC4T1SYuqeoUtDBpbt3FWTJw4KffZ4xQ8np/P/nz5Acu+NPr26G7vQcwWnnFO50p9zVrrH3+b4muUQrCACim2qy4pVqaGfgZc 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);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wkBgN1gGVKrDpJ0spev9XOrbiWTu15XjMpNTdbrkBFssa6jUZ56SECx25lrgbtq9HCoGs4J7O4rOIuahsXUj1cZKi61B2RxZVhZVxk/i3zqCyDmw4vVDEC5+CFfia8NfqHZaO974dBBTtpS6wbDdCBogeBFxlueEcXxb72d+kWlrCpt39jpxi2NVpW3qGF05HPqIjv/yYMaIQ6W+U/0uCUBy4pwVdqWgkDla8xLe2B1VgCs6T0mY7+Xz/cRfTLVZQTwxdf08qmhcg87aIE9peYyguQQu5+3FYDz0n1fhiT1gdavrIRB9Xu8XkZBIakNQG6fObcHS8CnMmfEJOb/MlAI8JsqSrnHzzbUbYQZivXFC8z0KQ1WCjVyoXgNCRxfAKWveQ+lPPmW1VLW7Gqvq25cqvcpLyM3TpcKlc8QFeHqMHp2eFB1BueaXfQ0Kj3NUWgUhDfitlTfk3S5+b8D+yk1rHvI2J2ziLvG89rYF5WWfviKvymYxb1YKPt38mj7z2rYpSguJoa8dU+a7xEk4Q/jzsv8sE6wTFf7uqqnWF2VOAoEQcMvXOkTXE9IPygpTkRnOfcIzqPkNF9US808A9S2sAjC5yO93JmWqqAwhJeV5Wr+u+7bKbCL8MlIA8b1rGjlI4aEWNO4t8mOZdZqrGyRrkVWYaHpAaj4gORxr6BIZGQUw6xZaELMKniZb27TOYCJ3MUFfIfY3T/KZI7AehwDSS/LodImHyoHjRZGeVPMTQotNleNG4tQ5d0wm4FT9yBltri/7/7qa5fzi9qyEXc8SNjr98Vp4A2QT9JwVSvSkkAfMFbpd9ENGdLwg2QD7RtAUqINk1iiEDOsDaRQAnumGBh2lwHIuiyzblwFA78iSas7hNhS3Dqry4jTe89TAebxO8Xa52M6mdC5vBYVVxn+z4o4WD5rqON1830jpcoNynrLYpnRd2ijNb4I26RKwVhD0H3M24p9K0OF71duijPuB5Cd6TrpVtfK+5qle2w32fWi1m2pMA1vWeIgCRAMj94/o/hpYx3McmKF+25sQjA7Jyi9jvewO75hPokRT37AwftnSjyzIDTeYxElSzz5A0jYG39RxZv8kSBHnnpFpibryz3ip89wwmCAQhjmAh7B9ZF+uO3vmAEDYIYnUZaRIRvp95L47u1s0TmTmklie64o3lPzBiYQ141JUZxPKotEdc5w0U6Hxn1+A2sek7ix64F4+lr43iLvhxkRyN1DEjMLvTjHE+lADS3G2HMmVSzrAPDgCOmhylmcYUmJsxSfISAuMMYH6bLTSjAxnSyLtZikxBKlYzEG1JsnvtgSnRONb1DdS8EmBUfJkNWDEir2Z+kPXXTSLlJ6taOMosvIIGENZPEnoVLsC5ua2D82nZVBO+g5le4KpEtHWug/XQ1ZCYGvfZ2EUIrHf+8VXJ9/PXfzftUVmQKHCYU/XPLBviKAmBWKI3KRcsu8R7cYBEf05mM7gPT1CtfuS4GZt9mGIumoTBQPXCk19F16HE0kbrVhH/V57NjNmeGuF6UqSz2ZuuoPNLkDuwv5BJzOFtQKpZRkbV5iVaOt+1E9PWdngy8OLLbKT6gM8hm50Ag1x/Isu X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c9d5b579-2373-4a6c-2cf6-08db7c868947 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:27.5694 (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: JuIgtaaEXMDU3t6R1DERswPDpkz77vFFMUydrCf7y6AFTaHjXOvqg1WtozH1QGwFp0wYInqubnTr5UXueqyXpw== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770491485260336323?= X-GMAIL-MSGID: =?utf-8?q?1770491485260336323?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/reset/reset-qcom-aoss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/reset/reset-qcom-aoss.c b/drivers/reset/reset-qcom-aoss.c index 9333b923dda0..28151cbd30eb 100644 --- a/drivers/reset/reset-qcom-aoss.c +++ b/drivers/reset/reset-qcom-aoss.c @@ -90,7 +90,6 @@ static int qcom_aoss_reset_probe(struct platform_device *pdev) struct qcom_aoss_reset_data *data; struct device *dev = &pdev->dev; const struct qcom_aoss_desc *desc; - struct resource *res; desc = of_device_get_match_data(dev); if (!desc) @@ -101,8 +100,7 @@ static int qcom_aoss_reset_probe(struct platform_device *pdev) return -ENOMEM; data->desc = desc; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - data->base = devm_ioremap_resource(dev, res); + data->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(data->base)) return PTR_ERR(data->base); From patchwork Tue Jul 4 12:02:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115733 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1173047vqx; Tue, 4 Jul 2023 05:12:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7CcCurP5ah0SRUCpYSFzsUjoFZI4xykNt7fYu7cxcGmElmNZjJYIYTTfdyLLpiUGaxQ1O5 X-Received: by 2002:a05:6a20:4b22:b0:122:6107:8d7a with SMTP id fp34-20020a056a204b2200b0012261078d7amr13969652pzb.54.1688472774385; Tue, 04 Jul 2023 05:12:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472774; cv=pass; d=google.com; s=arc-20160816; b=FXH99f/pYVESyl/AOrSUiIgohcKwJb37Dq+EbND/NJNVefZ0srLMD8LkxhVW0ZTe8c x/iQBNabc9Of2btP40vQE53TNlfgVGBIrqR21wFkjv5hUKSBhM1+5JZCsA9a+PhyaqfR hGcyaLwGPeFb5bXSJ7X+WNz0G0E6q0gumAyJMOo+tOMX0vLjm8BVDHmX9QuVHvB5bddj gNNCqyPIjp9QLuAxn8J/kYdAdRSVNcgcmcWaPW/1zOkZ3m+g0HiN25BR1H0LsFTFbbFR WcCqOZ3o7fyGCqg7vQD4VazjudlOCUkzOnT+EjjfdRBNYyCaajKvDlAU59vUiyx+QMm+ JYYw== 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=IhG4llVftO1x0Ld2SMu4e8/f9ZgjjSIerDolXPVi2wA=; fh=QEUE1GJF453d/FLq7q7FjWtj5CMT9Xhcq4HzkUVSxbQ=; b=YEvD2TSSyFxms0gPXBSDUbqDfzhovwwPBeImjfB+8xNUnrSkMmxZy1Exve5JzeCIzw SdMIEdLiTIp5q0M1eVXrwChnZYOhvKVfu0qkImo6d4lw3Yk4nExbosECjVM/H36Ec4mq 4PY24qS9azWsnohgPeZcAhRqMklXDfOBQHkQyOQRsNq1YiXbGFGQ+sHZosjj4XcVEv/a zEWD6ZnU5v26MfsE+BOJVeuvLpzdWFR4Df7xGBbJ0vAN67MldEl/3uuFiJZ5UKTGvCUy 2/zRDjEVhkowH6OR+OeZS9N46VTkW61F61oM4aiTOw4s4f4fABigoZ7N6uhWijiNkhQM tdvw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=dkY6QVx9; 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 o3-20020a170902d4c300b001b8a54f99d2si1610837plg.427.2023.07.04.05.12.40; Tue, 04 Jul 2023 05:12:54 -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=dkY6QVx9; 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 S230259AbjGDMCv (ORCPT + 99 others); Tue, 4 Jul 2023 08:02:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53372 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231294AbjGDMCg (ORCPT ); Tue, 4 Jul 2023 08:02:36 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2110.outbound.protection.outlook.com [40.107.117.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1AE3185; Tue, 4 Jul 2023 05:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DU8JostUpxQcHE4oHnXLD/5KIHznhCGumBvQxIlk9vqpxXEVwdG5Nf1o6GVj+T7B+TVDdXSuCQa/+r6wCqtQ9DjEL+LFzVZs47jGaq1aIXXKuM5uZOKNLZ/2ACUAqR0vBZLKcoGh4cqaXv4JSlm0jb6x5kxrm3rPJo4ixuumN5OEyRHzGTdG5ZwLgMXm8B7rXSWt0oOTTnI2JrD2fM4yPHJtwCpaTIusYLQuHpgojDOYYC7hl3ONV5rKDXhNFolWvg5OAIBDmKo5mCizAhOjdGfXmGjlRr7nV7RhKcxr5SmO+AKFV89+YoxuWmAFFV4Sec060GpMQqKbZZdJFg9OzA== 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=IhG4llVftO1x0Ld2SMu4e8/f9ZgjjSIerDolXPVi2wA=; b=k+CQU+BhMPUNMasUHu5FQ+qVvGCQBC5c+Ht1Fs/0Y48F4dDeEkIwLgOiIXDgiJHTSFaH2X9+XS0pbYe41kEZc63dBVD4EoPiQYKRCwd9YW6bMbU9hO9c8+KIDHVSBX72g6tEnbtxmIo47AtNoo9KrSSi4HZo/MRULtQ1V7IPlS4fTWI3fk/MJxg35JlKwPtuiqF+uBQN2R8/1l8nd3mMcktZzMKKwcedJJUTfa82ymfzfr5LNAeimvIEhdj7TOj9opFcciZVbuLSlM+FtASnuNauV7/Cd7Iu+77M83O1ioIQ4w05LOmf/lCCLpeFknq34vwTRBxm4ivEWmpLrlt4FA== 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=IhG4llVftO1x0Ld2SMu4e8/f9ZgjjSIerDolXPVi2wA=; b=dkY6QVx9pjur46oXOyyYcx1oMImMh4khw/F1x6ZlAWAvskGYGkNtxTIei5qzpHRwCYyTSRo6uAO9ssxvxACa2yZCU9coMqXa7wrhrnRWr6NMMIIPXhd8xPgmqBvJ9O7PaIJBrnk0hySJIyrDcOGeOQc4+vcL4Z9hIlKhZDuUc5Th0U8STFx7NX0E5tB6S4uJGL1DWO3qUkSDztHlSdlKq5I5Pf6wB6wZM2mAVNhFYM2Qwl1vpbfJw7sQL4Aw7ZQ1FalzkmMy3bU0sq7ocARGaj3EdWtpD0DtiFlL5UJF6C0jY8Rjto4bML74olyFw1n1bvUXJwb3e3YrDCyEHcIyJA== 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 TYUPR06MB6052.apcprd06.prod.outlook.com (2603:1096:400:354::6) 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:29 +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:29 +0000 From: Yangtao Li To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Philipp Zabel Cc: Yangtao Li , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 4/7] reset: qcom: Convert to devm_platform_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:08 +0800 Message-Id: <20230704120211.38122-4-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704120211.38122-1-frank.li@vivo.com> References: <20230704120211.38122-1-frank.li@vivo.com> 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_|TYUPR06MB6052:EE_ X-MS-Office365-Filtering-Correlation-Id: 7f56b129-2f0d-4c97-385d-08db7c868a84 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cQ9XEjR5Ds82gkHaci5Csi4YQiaahP+Wk2Jjy7KgLfQpXkD/1KN2hhhCnZ//AJhNi6Y1+cy3xZzI9Oky2NsBuHOWRCE+RZ0rUQ3YeD6CZBI34gsqWrizvy2RCKHKmrPoV/PpLm701/sRaRb63smVulTcTkpg+j5dNKX7P1DgcNdMmUSzXkIXyFi2D3fsakj8Dea2VnCZgxJmR+KGVupKs76T5StgdDS6Kd3G7R8vigpi7kq+de4OODV0rMcJCTSpvz6PSub1oJK7b/+Hhg1AlRSldsjmb4Wj3JbLvaKBFArcH//eP87mJvGWDvlRxAgJbcSTOIOWmy2obQwU0FR7hBp7EpGBG0laoP+hJhXrZQ8d0kZUNMIv5pV/BFCb4tEylcouSWcUAXX4AvDAygAH1fZpWb4mJ0+bVH8wkz4f3dMUYR5tvYOPrHlPBce5ODBDz1gFERFX64slsesXmPJED5EN2zjl+Wno7u+BwXuOyIpYPuEgyLRWcAIceAipHenb8lh84BxhJqq8lxFz41TqCA5rOAC5A8jOgIGRJ7YZktiB0nsY4ahZ6GbSVbk1mI7eBgJn20Gf4FR/EGS1wqyyv0uAgd7dTtOIREsPkoAaD+cjWDGdDD8EMGEl99OoGCCb 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)(346002)(376002)(39860400002)(136003)(366004)(396003)(451199021)(5660300002)(2616005)(86362001)(8936002)(8676002)(6506007)(52116002)(110136005)(26005)(1076003)(478600001)(6666004)(6486002)(186003)(6512007)(4744005)(2906002)(38100700002)(38350700002)(83380400001)(316002)(66476007)(4326008)(36756003)(66556008)(66946007)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: reMjrtTYE8YttqHp8/K892R18t6oQGqOzJopF7OGTk8CTVdOpuvdXPj8/9kPo9diqBKjS+C1BjAIA76xG722lRvUqLat0XjKOjiRwpcBeTAu8Qr+XTnFGL3iLgn3hjXGUYaWix6y+S0OaciFyhtjLkj/747xIYYLEoqppVycFIieRFQ7pmvUS4oWG93OYmdJCpIdvr6jYftKczoQvWVYBsfuFe7Lyrg8OiogWzSmWYfuC6aWc/sw62bS5dE62NCsBE2MPNqrz1yS5PbWDbbmJu84APbPIbq/y7Xa6K8eoBB/NumsCEJMF+FJHCoVrBZjB46IbamKOxwf7y8PgisUUGyaOrioMIGbu7X4mqeJhirQNsQ3eqJGYas+KWuDuEhMXatz6+n2yqelt6eKnwec0/r0bhiIDV40VxWx2UxZg9uNn7zuf0gHPKzALP85wg+4N7V0kzTvbbM0WfxkCpmL/jzlvYqXjIuPl50jlDvSKpdRbbAa6dlqkWx3xh5hqfB8WfzolNbzshfewt2coG7gfmYEXmnH2Ahk3V/D2Wdb0kImYcEAZUA/SU4emFI9jGgnd8TPKVBZRuy5fJsOW68Qxp3Votl6YcuDC72q/Yeh8itT1p500ggOibx9jLR34sGFJQog+gEmuOQVKm2xYD5SVU9AmLzcDKsshZlRn0pNv5UtyY9Lhxn81gxMMV2UDT+KEekFg4T3gugxJY4VYpZchNfFphHj6Jl5jgfWTzwM/urwVvINr5LDkduGszm0Q47OsPFyvW+PU2iECtg1CoLUNmDxO5Qk6UGe0ss74s5UpyEbJmmKtfHIZgvlHdZSOpxwKfO4RY19XAZi4Obti4PHiEW4v5nTZt7oNVTGWflqyO2jBVrAX27XLd0BZF4WehEq1db38vs8Zba2GCqEaxSzHFJhYNaRxGoOynPzCtiDkJ2mZMkvEwSYQWVjGHjfDUhlF8ra7XUnOhKBs5DKPgJNbA7sSMyvJbEUVEWx+z9xTVKaZS+ORHQrJSNUJ1/SVJ4OnPqYBT6lhr1MeW8Lxko9a8w0VuG1hyZ6ZZVdBiU9qUfA3DzBm8+XbaCdJC632lAHY2IbcOGPY5uIF4efrtc2TQOmTuzR7D9nCJFHHyrSg3hbJ7I092QGqwihxKkww081cwsXUMx/9+1YrIs6bNzUpX5ssLBQq1+x586bdl0zlhHqKmq1mij8toJXVMloDVNvkTuDGg0MQaX+StZpElLv0Vkc8yC/LUvkaBeOiNrr3SU9eAWPj0JShj1T7+n5INQQKnrXQWhrFwExgqzJHrJ6t8P4qnR+X6Zbrzg0ATHQpPRI9njqDy+l6AiQwRDuWw82OFNHgBUwLBA60WNPu8+/08gi68iDht6i4SZ6T2+9PRIEjRdRHe55J9A238KOd9kjQz6tRaHnlxNZT7KTeJvbdtfXiZl9iDUPSo5Ef5MAqUDhCedVgwnjRf8Yt5bwDLr9VBDJEE5j1D4o2+8EN2qKdlDXSGZ04rAkfaa0lvSmsTutL64gG2zhENcaDbm85ku351n2DKm4pa0pI6vf2yypsIKTM/Vz31NNs0rxEEnBVNlhXX9Be0yPIy2uuDJJK2va X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7f56b129-2f0d-4c97-385d-08db7c868a84 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:29.7092 (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: 7IxOyhQHFfaCjUOSgPd/FrW2y/jwig94dlec7VOOvwU9KcwxZGwok3EakhfIsixmoN8dTjWljl8ghHdfZmX0/g== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR06MB6052 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770492027830510239?= X-GMAIL-MSGID: =?utf-8?q?1770492027830510239?= Use devm_platform_ioremap_resource() to simplify code. Signed-off-by: Yangtao Li --- drivers/reset/reset-qcom-pdc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/reset/reset-qcom-pdc.c b/drivers/reset/reset-qcom-pdc.c index f22bb49a4ac8..ab245c701590 100644 --- a/drivers/reset/reset-qcom-pdc.c +++ b/drivers/reset/reset-qcom-pdc.c @@ -114,7 +114,6 @@ static int qcom_pdc_reset_probe(struct platform_device *pdev) struct qcom_pdc_reset_data *data; struct device *dev = &pdev->dev; void __iomem *base; - struct resource *res; desc = device_get_match_data(&pdev->dev); if (!desc) @@ -125,8 +124,7 @@ static int qcom_pdc_reset_probe(struct platform_device *pdev) return -ENOMEM; data->desc = desc; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - base = devm_ioremap_resource(dev, res); + base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(base)) return PTR_ERR(base); From patchwork Tue Jul 4 12:02:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115732 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1172767vqx; Tue, 4 Jul 2023 05:12:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlFhL4TmeNUUJkLYqmX/X9pylINBihjBEDtgkyjL4mrzWyD3+iV4AOBn+1TvQL5CkGQVYVfA X-Received: by 2002:a17:90a:199:b0:25b:bae6:3c67 with SMTP id 25-20020a17090a019900b0025bbae63c67mr14395035pjc.43.1688472755031; Tue, 04 Jul 2023 05:12:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472755; cv=pass; d=google.com; s=arc-20160816; b=HkpuZah2BuOwmyLExpgCvaxNehLMSkHkAlYm6TRbQfblKSu/I/LkYwow+ojz7qUxGq pKmYNVys03iWLquwsl1AyG0YVKa8jUTp6sisyjkRikvDE/38Fr93Jkog9+na/iQLRF5r 743SdwIz8pFv9AnTgcyb4vZqflGh8AlGQnmBGgcNZ/oVA/38yTJsHmzHQWE/hcN4dooI d/Kr0sTQ16vAMODW0WBGlyvvhouNyT4zvy1h+kf9Q5R6NcmovNjMft+7o+NOyZb5yIPs BOwwp/0xMKCoUxzq1TEcOQT5k4sP7bi/kX6BNcHFMWoPKRuOHDp8Br8kkE+CsN8svLFW kPKQ== 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=gErAKk7xTs3pgJAw1u2E8wyjIQEFQ8OkMoJIOhhJvoA=; fh=+5EpQrTl139sSK2Rd/dVtSXXFCzYQYD2EBhvDdXjjqs=; b=a0MiT/Xhhrk7uTfH8O9LrQYuBtGdBzBMek5nicbD91eAROqHuus/UtWZm62q5ZoT0L GjCM40AVIJzNatpAgI7YgYYeURJkh3nL3kVu5G/FAnajF+qdLXZWwAEHfxO1SIwXuLEk KH62wCUAT1TXeP8gKXCyuJ615SwMY7aBr/Td82gCbR76rqV5vCinWLLkwp4+9cW/GmNl h4uez0rWVjv3WOCqCj2oa6GYaCKUpFkMRs5u9cpLjc3zMqch/d+sct93PeXkhE0Mfdfy jRlSpZqqkldMRlOhJVee2vMUrVh3/wz3Nv6WaZ3o18/AOqheT66upCpTyuk2MJ+0CAmN dK6w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=ivaFTOKC; 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 gv15-20020a17090b11cf00b00263bf1c6dc0si4733680pjb.102.2023.07.04.05.12.22; Tue, 04 Jul 2023 05:12:35 -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=ivaFTOKC; 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 S231392AbjGDMCo (ORCPT + 99 others); Tue, 4 Jul 2023 08:02:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230090AbjGDMCf (ORCPT ); Tue, 4 Jul 2023 08:02:35 -0400 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2110.outbound.protection.outlook.com [40.107.117.110]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D9F18E62 for ; Tue, 4 Jul 2023 05:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bdtxXqUgCeTZguAOvFn+70dnOMT9NYxR/cngjNKxGmmo/3keyZxkOMQK+d9xL6KzLPgO1e69JpTEnjhG4Tkv5O1sZ1C0oAg3kzn+J81P9TcAg9XAODnzetThoV7uYUPiogN1E4dHgTellUpAOGTO0QQKXXqczchGUjIwbHyqtCGqLGlyQmM7DVDWi1YJXmz1vQ2UJITtSh7ECwXGSkfvuCldnFIkkUJtnwQc1k+3aRQid8hUifX9Rei/XaYh4AvGdjWbJcQw+IU7WcT3ZoUn7/BlxEy/Kpv9YrtxS3+hsaJ/dF4uZqv2kc2JwihpiNX8WPdbob09nUYrM52VjObb8w== 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=gErAKk7xTs3pgJAw1u2E8wyjIQEFQ8OkMoJIOhhJvoA=; b=OBCWcaV6o6GP5BZhMeKD2g1QetEXl2QLcM1nQpzwF5ewQOmE7HUyo9IgocISqm2f7eFsSiKrFbzd+i2gWMfKcW1TCGtUq65cfmM+D+8oLikAaivGZJNkHfcQDFeKbkfAybnFmJ4f/3KPKwZtxY8g+MF5bBhp0/pS6zn1skQDRkZA15+zMvsdEAJaarDAUdm1bsBQ4XBw2J/Hhc9IH6waJwLczkGyEF+XDJA+XZbOhkQKQitX7xyWrj32LVNSpA2XfLc/LhEBC/5ZtE/E10PqMHi7qIERv9ujc8WeNHVML93kjsUiyZezdeZu6tyZkUOOW7ST2YizxvRPElT2lZJ/nA== 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=gErAKk7xTs3pgJAw1u2E8wyjIQEFQ8OkMoJIOhhJvoA=; b=ivaFTOKCSus61gm6DGExBRdtzIvh38tceMsMmf+yF5DgDcpC6NTQ2FtLsqg+ddxYIzqo3hNylDcnmJeiSu7x7iHrBLwLW+Kb1bpKgqS+ZC3n6oKBTrVJMXrcKe48FLme1PQ+QGst+btXbQWyylwAVX6/h4KfbRt0qIEx5J393P5o6IodJ0Zv1JAWXmZ3nrnWIa/g2fs10yOh7Qpns3LZpyOn/IqbhlEmdzB/oIEPDH1XO+2n12JuHzXwPpPvVuMSaP/bq2JVKuL1+QcRMcJvzgpyvKWKaEebJmDhhrsjSfj5LG6W7vfycUOiTHIgDnBDZl8xefyTYcf5VyvNhgNO0w== 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 TYUPR06MB6052.apcprd06.prod.outlook.com (2603:1096:400:354::6) 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:31 +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:31 +0000 From: Yangtao Li To: Philipp Zabel Cc: Yangtao Li , linux-kernel@vger.kernel.org Subject: [PATCH 5/7] reset: simple: Convert to devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:09 +0800 Message-Id: <20230704120211.38122-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704120211.38122-1-frank.li@vivo.com> References: <20230704120211.38122-1-frank.li@vivo.com> 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_|TYUPR06MB6052:EE_ X-MS-Office365-Filtering-Correlation-Id: 34b4bde4-aeb2-40b6-e5cb-08db7c868b80 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2aesFOD36tIvjIl32MJQ5OOpk29kurcZgOivuJ7UnLRKrmar3YwQFuWMF2g/5jFGPN/rR/DY6Ie8lNtiPJRQFFfJtzjIl0GBZlaJ1vGnltHKtbEFZas2EruNv/bSE71v9Mc1jDNYUXbAoJjxZ1bpcp8KtQFMvSwaT+EeMnWMVNFIfwsZx6MVSK8j0rcR4QbW0z9cQE/TbqOcQ5POswMihyeqtxnLgQF48mMK7SgH9XuSFx9xBWJRvFkm3JBnWk4nN5HYeBwOceMn0e3bgslR0z/nXOKM4z+1OJb+hg+9RNqYLtvt5PmcjbVaAMRCJQ5XAFdB4XKxm+eAkvL6+DZcw4nvMyigEhOYWcghX0kmvRax0n+XVxDYCUS0tKGn9FWAdw+GdwK93chCPVTkUc28aFUlHheHSQIg/E0YpnY7Qfkhn1gX1PIp21H8ZrMM/R9CytSRhiSDpPcpawoFDvIZ75cADa4hSdQayHY2XOBa9gHERa34lxg+1ZlniEHxa2RPKk/5qaWNHXn32+mU0l08l7XnsQIQnn6xeJ/HzVFI128pgvXHeb6RbDknP+h7MrJNRlxmMVxB2IxV9dmkVG2c2hY+UZnh/D50R2BzTWbapCem8td/6b+SfDvKSHlb+1UY 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)(346002)(376002)(39860400002)(136003)(366004)(396003)(451199021)(5660300002)(2616005)(86362001)(8936002)(8676002)(6506007)(52116002)(26005)(1076003)(478600001)(6666004)(6486002)(186003)(6512007)(4744005)(2906002)(38100700002)(38350700002)(83380400001)(316002)(6916009)(66476007)(4326008)(36756003)(66556008)(66946007)(41300700001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: KsNo7fRmXqtVbWU242VsuDOG2jbUHANSxaQcgnCw+sUJo6BaV+chWw3XM62cQ+4+/m9pqu0NiRFcMN7Hb98u52tkewfJu9DvJ6u8fMmAbkoOCRd8XaOFzvNQIqHq3K1eqAlie7qhGejvyMotDUNQCXMB5YTZHYw1mP0kfuyzfhyJWSxLBT0qReXgPQSSiYPQM6TQfb4v/8BwfTeQjb9MPVNiwFQzhihtPmXf8bDI2cY6dg5ui5LpIPcjVIu5/tMZHfM8jQ8mZ/K1ls0i2/n1nAY/aZ6aYgrnzunQEdKMoZwZ1wfwHHO64Za7LgX8VB6/ARWG64eI/knLRF4Dv62eyeIQNIdBPbXybhRlMHrIVoWCesh+hHSQXk3zXhUU6ZsNM3rMktcDth0xC/Vq5gMFGOkZDeazzb1JXWIUNP7NJ1KDq1BZtxmcatqByvIg5Sz7cffoSV2sPNh4xmajgdO4HbAkzDAciLlKxIrGs1f7QixlDOZ4zjqyRs5jukVpB4qaL0TJE1KDdwBXLtx/Ck7Y9BNCOj6NKEbOuM0JejHfYrk7OnlO5reDZpEuEMy4/dyz9LHDy6+i8CaZqvgaTHQ5qzg4YJYNpC7El1syrNHMvpK7wmJeGpLEoP8KSuEGk02pLM76bYWBnGmzLP3hk7/NzH6vYlmZOE/e1B2TJ/w0DnFwT9mu5hKpWE5YEi5DLZ1I/z+DGRo/qvM8MG3RVlMoUO2b6/lnrae/4jisnYdGPo3y0pkOWphhkQj3eKDlqYPirCcAo/ytWIWMuOCvZozNbK/meIxg933W/uHMjpTjae00Bjy9H7ImfJkxYYS2bGol5c0LSyRB5DUWSj73is7gJIAHAOd12yW9llCODt3VM4A1V4dS0Zkx0kTpRNPWnH+8Diz2B8Rnhd1CPGG/bK9qiAy5E38tiknHok1YPLPFddBqzTpl8fdPbLQ3XHClueh1IhkjlL8C5Pj0ZY/jeoDDVD8xtr/1Nu4aKqOENO+yurmJPmK88G2lW335Hsi9rhhjT1yrnCM3B/Go5dLeo6jB/d4ylNL3WBAUjcnZARUG2D0XFsoyqqqHIzcDG70cEF5O3FUPE3XVJLUYuYn7t2NLmMTb5DHkWTvTL7m6n4gDn/ZdIcs758WBTUcPehqQ7DnSWQO+p7che8obZ0w3tesxokUAmF6vmjqLcsLMfpN5a1/yT0Wcq1s8uxN5kPtTlo0/MB4eEXPl+HdJdnbkj/rYJ1WLv4pu/ULRBAAn9/5v6G+HvKQLCx0qn6VPfPGJbJqL8rSn40/928cTXvpZGmeZggow8TLfs2XK6NcQTjh1xZZIKzXOKSZYLuwOplLkmMGNOV282CqjTm0zkWhlNhm73byIKAQpZyrkewTFrj1+uhKmS9yqKZiR6fq9ZYdZ+bMOQ6JNZWFtx2EUWoXgSfSOiS8hwwt4v7Vcn9cLTzNpTTYB3PDgc9w6ZxbIueAZe7y+HCxWJ0OskHkpMJOz7u/DRxL+H/FI5V4LRmDXK1c5sBvViOcCt0blJVK4V40GMSe2VhDmOcD04px8k0wSwUtuxzptIzcrRMDIlPVED5q/o3b08kVICjkm1p6B2roStWvi X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34b4bde4-aeb2-40b6-e5cb-08db7c868b80 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:31.3016 (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: iEvUDBH+Pa1GHEeSajy/pESMJlNieitpZyC/WgRTbVNQnX3FtTnFEhhuc4EeQ55AR8CBEnpz/3mj3dns2NeQYg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYUPR06MB6052 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770492007700700697?= X-GMAIL-MSGID: =?utf-8?q?1770492007700700697?= 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 --- drivers/reset/reset-simple.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/reset/reset-simple.c b/drivers/reset/reset-simple.c index 361a68314265..1133b2af7692 100644 --- a/drivers/reset/reset-simple.c +++ b/drivers/reset/reset-simple.c @@ -170,8 +170,7 @@ static int reset_simple_probe(struct platform_device *pdev) if (!data) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - membase = devm_ioremap_resource(dev, res); + membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(membase)) return PTR_ERR(membase); From patchwork Tue Jul 4 12:02:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1173048vqx; Tue, 4 Jul 2023 05:12:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ42g1aiIuoB2PUeYNX4xZhw6Eo/6/9s6wjj4B4GIi4DoHPT092WNMOury+GytUzUCTLtjHD X-Received: by 2002:a05:6808:199e:b0:399:169:75d4 with SMTP id bj30-20020a056808199e00b00399016975d4mr12942373oib.36.1688472774548; Tue, 04 Jul 2023 05:12:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472774; cv=pass; d=google.com; s=arc-20160816; b=uBAOgtJa87k5baZUM7uRqMiYambbNjONhyKC5lRK5rwszfEDj19Tp3qGcAuGDX+7Kq OMgCskERczGDXP5wyPFMz14pISXkkXeJTVbOL3zC5O8xDgLwGI1nuHJru8Qw86izw8hN kWHGP1JbgfuvTIGkV6veacEB+/gCIZ/EQoblbA85lwOFd7ycAdZWgZzel6ypISc6qoz+ QV4K/WBIVxQoRuyPRk2ICu7Qxcx5qrKyKepTSgV2liLabdOgZcpP/03AihoPHiq5Fuzm DdfVl/pO0vlL5R2TenmYBAon0Rmp3ivAwGDvlDfSYITv3KPjFqG2Fr8noIeHNyUfJSCn TLUw== 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=Ey8x6ahxv7hVTC4qQRpYkZKa5U4pD29GdZ9WhcRHvKY=; fh=tdKXgKAGpUdXA3pgN1gBokYuN4TeRja6qEFJCIRA4Zs=; b=g9NWBM5E7ovLuNU1SUjX8E6CZwft/Oq7I2B/GU1Wwy64FJdHhUvcFV270pP5/4Z5Lw 7LDWAZZaKpLdoxgs3Y+tptBRiKH6yRO6vsMqatNRVCeYo5sWDIOW01NQD7UdMCFcaQ7r /IaTbTB9ZG6dHqzp7hOae5QqaeQCCAS7Of4FMlPfag7EFxQtCwZPw0gkZEyF1i784yoL Px9qFQ0bAhzmvelQE3oj0S7k2IYs1TIE997Jdj5gRj6wTuxj7a6/L5ZRmX3XgdYwJkEj oo+Z3Gfu4SGllxQu30gBNAngZd5KYfGSgwquBERaG3hZQdQkYdY/wNlg6qhHdKAhGKql AT0Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=NFnx7x5K; 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 j35-20020a63fc23000000b005538c82b70fsi19978192pgi.166.2023.07.04.05.12.41; Tue, 04 Jul 2023 05:12:54 -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=NFnx7x5K; 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 S231394AbjGDMCr (ORCPT + 99 others); Tue, 4 Jul 2023 08:02:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53362 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231250AbjGDMCf (ORCPT ); Tue, 4 Jul 2023 08:02:35 -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 23E11E6A for ; Tue, 4 Jul 2023 05:02:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=W+W5tZ7El2B0nmQt5CL6y53TUMJDRgTc6T1t3BPt0l2bFFy3IGRGa/lOMI1/k2PaEmqjEVgIFWL/UzBw9HIgxWawYyvg0WK2QEoP7fYzTbjGKk8SxiBbH7TEA7AVl2c+MRyQ6LywsEI5v1jjHwvuLnMu2nfkKKHurltydQEiGEN8QwX51piboK5/GAlsO2tabhtGppvoIpgSbaJBsjy8E6OG6IdO6fEhPA0GerAudviduXMslPhvZCMt9XC5qRDa/16FGtKAd5aadoqHKWXW1VMQiSkZvDwj0tVSEM4tueFvbnHZM26peIqqV7AC8AbK/Z7IVCFAH6VOFm/nTNJ+TQ== 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=Ey8x6ahxv7hVTC4qQRpYkZKa5U4pD29GdZ9WhcRHvKY=; b=EiTIDMjZbZc0UjFxNTrO+SKTYI+Dsippuo2d7IeKFhiZVCORwGRDyR4ZODW7A7Cenysj0HkkeefOvq8YpWTYiFo5FIpq/LnlWU86cqipSCHfsnhT9GWv4P1uha1ZRKPWyj0B3gQBVlN/6sjM6ezUYa/YRj/O+l6FiNSgj5wHtXX54ueLh2lmcsz5l/tnMSU/vVsr3id7UQzfemH/Qc9t6GsVMsKGeaMSMpafAdhJIdKQ81a6hPMHn8dLJwPTA/F3p/noEH0vfgmkpnSHxCmXYTdXLeveZ862/+QYl3uux6pRDhYhQWZt3E28DLM/FF8UUA83ygdck2C7FOwNZEFDYQ== 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=Ey8x6ahxv7hVTC4qQRpYkZKa5U4pD29GdZ9WhcRHvKY=; b=NFnx7x5Kqc3oxEkuLb4cKIVeuAcqwCtx2A5QM9kVo9AOlmlvZA5WA8K/oKsWVjwzIm6nnKNk/d8kJSy9SsBaUdrVX1/8KvfhQAzlNlrPRbxDKAaYvxTF9qNAAE9VAjcuJFwgNgLXt4yoSVwmODlIKJgxAz4s73pDxFDgs9wqlLzHHDP/MpfQ7U+TBlFdyyBSMTYdOHiuaS+leDV9dpjQAjtMdAvx+lIMOSIrsnrRxlemUuJtxPOFgbcEh4u/cWGr8P+R9cNioAedCP5fpIbxRgvh/ZIn0jfx+n6iMPuzy2xV/EzwscLzJ8wtVoIcc1vusRAvbm9lCZEBImVznh851w== 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:33 +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:33 +0000 From: Yangtao Li To: Qin Jian , Philipp Zabel Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 6/7] reset: sunplus: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:10 +0800 Message-Id: <20230704120211.38122-6-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704120211.38122-1-frank.li@vivo.com> References: <20230704120211.38122-1-frank.li@vivo.com> 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: c5ec69fd-1825-41e0-04b5-08db7c868c93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: xMNs/BWBhf7Gh2QalACV9HlLtveM2j4Drd5S6BAWpwMLVrEEI+HTq7kNEdw7IHA7yQ6tnNTaBrTrbp90aXjWBYd+GgY4yXqNPewxkNCHeuG0eAmBn51LhRyafjGXu3Z3+8CndIJLZiiIY2u4OoLsS7X/sZnof0qRKLVDppYNan2EIWumLXr+oSZvTfOd2qZx7EhmMd78qF/wfe5G3qeoqKhHTOQ/pGnZORQCupbnL1wcGQqvDdTOF8jpAL2ffCTr1aVcRlgXZ8ZwxYEITBuMHuQjx1pCGrvnMr6SqnmVyTsvLv6bFurm9rYrUYT9IruaVXtfCGnNhL0fXoRaKFRs4QDa2D/qhCkW4/Vv0Xp3SQiyxgxcgdvSu//Ili5GwKNIN4UQIOf4lwEyEQjitFerqZzP/sppbzABUIRp+CSg8fK9HyvYha2evgALD4ZgjfTtR/mqNdCJ0dNBCt6dGfyIEmZ85cKENH3wqDiaHbrya26djkxpZ/BmuO6bSuwg4FxZ4dZLDaIfJCwt+rLCGJ1VD84/T9GyfA+OMTKj4wiX3XBDV9S8miTukp0wGzlJmgtOOnKg7oz4kJRdrYcZA1ykD/kre+SPSNMa6Hdlcm9cNw9doAZJFI2tPlgcaL8q/VFI 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);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: tqVpK5Vl4cC1BpD+VWEF/njXDeZh+/+ILJszKT8VqO15uIO4sauhyH9NE0VbU5VouzeqmvA2dWkzcj4Mr/AmRpV2K1W/N9oJtyIF4rIuQQfbqAgbBFBnpeFTTJzq+RPVNveJyRm4GbPT9p/Zfj/vZZEb7Tt4V8Ri214HRhEVBCh3NC9U8XQQupdGL+Z0GKrDZe3qF2wxQ2QGDzc0Oj8W6Umr5ME7qJTT4HYzqb5OfLcXFs3N6rcQgt8Cc2axFdCVGuzcWY4b2aXCb8pt9YHxp1SxCqXcy5ViS+UhFBv1oT3rzhW6Q+bx/0/wuuf1/NewRipcw1fdhDYSPAW+8SVXPIC7OKu76x1/vS3aaOiRKZepnKZ3m4dVnMxrZbGkVOfePtfW05Xmr3epa156W7y+/+XjKwn6E0fm1G2PJdqNSCu2h+bMePVti3Z+aYBFSgoTKtKxNloebXM8xaeFpbZm+DODhghdzRF5GzGJWOkKo915MidWbzx8LgeNZJ+j3jjQE5fiT+TeA+HvZ0SzNEEOiROh++PExoNwBfvSTTyHUklfIpvwRPIRi3mQCtJ3VaRwWJXkUWXGX1oQ38p/ZyzupWkVjQr+TdXpM0HrCmRWCF1a/u7Y9cPvkB6jsG7HiV+irOm32oKSH/HlIT4aKAOvq4L1O9k0eb8K5/2NTxY74MPDWjGXPsbetZlL5aJz34u0jKNkRjtchXOsUw3FA4zbGuk3CfOgOVrrITGHJNRYJbLM3L78CpSseWTa36tul/jKwA8vrYCIz1lwkgYXe04R0iDYpBYvtrtrKiEZA8nhZHJ8i+gcNXQ8gnzt0PP2LW/S9b3IIR3iAH28/zki7mqYqwBAnPzIerBB/TR1yLOPJEVuKSqKUqf3LSR2t7uCF65Ihs73ark0fzDaKdHUT8bjeY/Ofb0FzwKkfm60Fl4eEyjPieZrYi888vzGGDERCZJzpGDlZgUKOJz/Of35eJ8nx/DVTCrdzKZintEEuy4Jc8RRjRWipxSl9Hk9Rq0ln4rizN53tM7IcGdXrVnrBkS2CfcjRvMxZD2S9sVmD2YNEx7NsFd+YXKgnXvKbq1eF2MIP60wP5pw2E3j+YH+om/1xYZOa/ZsjMUPu+MnZuqqoprCSBjmr5izAoXm6Zi9kojSD6+hLi83o3avH2axhHN66JE1Nml2PNzX37XPJA34o0t3viMhQMdJn4k+T6fgZK/LfipobsfdeTXCnAMZaqCxvwBdy9dUgJCGIna9+sEs3Sraevh11eRn2jIKEiaryK5xmKLU3UHIc4VIvfB62jvPyzcu9Pe+m5PBFovy68oQJU6efhuASsX3gLuqNYzqopQ9nnEBTN5LyJWgqh/i4cdYWPbeO+IQMUIDCtyW7iz/gwW6qJ4nv5cAwGQypcaPz7vIZG0l2TS87wdevuDZpvBNGhBfTAeNd8SuPqJBffSloIIhVm5QKrI8Nj62Hp94lkd9zMfNLBTSYYNXNeUw5o8D5NQPT8M7lw7nOt7uzfjgQU1CeznW/j3hrYvdrfWelpau1wlO49truldnztrPBxA9o3qorCKWVt07zch2E/CYa0csYBn/yx34BMPsP4XiPVeQ X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: c5ec69fd-1825-41e0-04b5-08db7c868c93 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:33.1474 (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: 5KkoX0l0oAvjBU5YLEBW1oJnWpcc17QxjC32Z7QSekjO/yAbR28yF83mS/Yx4aFtRsT9aZzVtEeoPzrJm7HrhA== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770492027648374349?= X-GMAIL-MSGID: =?utf-8?q?1770492027648374349?= 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 --- drivers/reset/reset-sunplus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/reset/reset-sunplus.c b/drivers/reset/reset-sunplus.c index 2f23ecaa7b98..df58decab64d 100644 --- a/drivers/reset/reset-sunplus.c +++ b/drivers/reset/reset-sunplus.c @@ -176,8 +176,7 @@ static int sp_reset_probe(struct platform_device *pdev) if (!reset) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - reset->base = devm_ioremap_resource(dev, res); + reset->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(reset->base)) return PTR_ERR(reset->base); From patchwork Tue Jul 4 12:02:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 115736 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp1173090vqx; Tue, 4 Jul 2023 05:12:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5602J+4jzAXgRp+thYD2NFCOX0bdHcOxIv5zEFF79pPbDpFm4bCfZrYqUwfAKECcix1nZS X-Received: by 2002:a05:6830:1be6:b0:6b7:38c0:7420 with SMTP id k6-20020a0568301be600b006b738c07420mr12560232otb.9.1688472777386; Tue, 04 Jul 2023 05:12:57 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1688472777; cv=pass; d=google.com; s=arc-20160816; b=gl8TwvbBSkmCi72AhSjzEwK22zjVP0IXcj2WB+KibZEAJoSPjygY2mgJQmTWIbJH++ cn15GxXjxp4D/wBCfxX05nwZWsSEIsNWpEqQ8p106BZQl3oLxPWHPKwNiQAq1G9+9Nu5 5p/jBcJO+owLm6Npm1EQKcaRJ+t1rAprVcwpiSsIIEbjg7/0q8BJbjlbYk8vhDcu2ZlF ma7FFPCCll33QrMXd78+MHezxBfxt3N9H+AulrK3JR4HozIn+ZxtMnnXS5N+756psKCY LBPRSpiRlp5GOaWxeH2QrKtPDRivZnTtfyiVMuU92lqzOrFKX+rtMFnmcyQOKOAFjzEU 5AqQ== 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=ecH+KkpEz167wX2z/VdYfQe4tGjxQuo5p5IfQagxbTU=; fh=/g2jSxFlIyg1IhpLHtkEzoDx8FlS/8qM/JPbxeSsgxk=; b=IqvwXLBahhKnqVk7lnTFN+2ffkJIYaPwEI3QP/pBU9BHpDP0AdjulkgfShfKfTFPeT bD5MVCZAuBkY7bwAUHsh6qlC7dI1eryxEvFWy3RkoF2SrJ5LaLUZXv9eSlXYjNNRoGG+ fJ9eH4SNDoUbic0V6q1KV9TED2poZSS2lG7ez8zPG47f8ZpQMHPu4g8rFMfJy8sAMaRU Wj7L3YsL8mNGz0CfQK8BPq3XmIbHjOHhsSwHpiapnk655kK25dt3uVh8mQYOCuntlD6N IuEJ4wjDBXJoWBrzawCC8QGPXnWbwmHIYZAWYuMT7N5ypz00n12T5l2xqQKil6tGwmz7 2NYw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=aK+nBpNB; 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 16-20020a631150000000b005573bd5addbsi20842038pgr.446.2023.07.04.05.12.44; Tue, 04 Jul 2023 05:12:57 -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=aK+nBpNB; 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 S231441AbjGDMCz (ORCPT + 99 others); Tue, 4 Jul 2023 08:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231319AbjGDMCh (ORCPT ); Tue, 4 Jul 2023 08:02:37 -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 25E14E62 for ; Tue, 4 Jul 2023 05:02:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BIltnDH8+Qf8sNWJpZ32OmvJkjqezvM42P6HumcPbMW76cpzk3KA5b24iCpNXWFrVObUWGUqxO4WyV97FFpLKmAxPHnlc03/9u9YAPM04urxyYXU27EcLPgurBlQA0/bAYiILiT81bzjHW0X12aIqt/+bPhDTDnMMmd8dc7s1snGupPY89xBH07x5SNi81AMDE0IAxiFecAAt/tx5mlc0zwC6f5wDAFgEwm0BBRGpxT0smabNykdRbCBjIxqjAwTc11myLGatfSQbuUiBiGRAoQ+zj7ZLGs+gTV21xSALDJRdmOs43s3Zfzjc9Oblz7ujdkDpV4RYBNkKKGp1weu0g== 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=ecH+KkpEz167wX2z/VdYfQe4tGjxQuo5p5IfQagxbTU=; b=Di45d9khu+dNXknrX58ayJmFPeIx+sPy0TbwUdNEuafSzR2yv9EEpavRee28YIlZp3Jm+zdf5W176JYtuBGAXXENdWmwcyji6ZN5jEN8HJ2hmqA1HNpPjwdrXUw4AplusEa5l7cUnk+lZuO4UfLA9nulB2vlZma15KA+2DdpXH76Q7TS39bL1G9OKQDaKZGIERyruNQYkG3MEAsOCPSF+MH01P6auR6xWlBnMM0txYNd1Y5wbcPk+Et6mUyLm7M0OAmLVQybhsfO4B4wfheBQZivgo2fwL7FxImly9MheorNAeO90m9XV6OEHeynInwrqswqjssS1UAQD9MTBeuATg== 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=ecH+KkpEz167wX2z/VdYfQe4tGjxQuo5p5IfQagxbTU=; b=aK+nBpNBY+M9LATalPdjKGURS2+g9GcFTr/SjMVuaA44Bojcwd89ZVOQSu446n1qYbUpRWR2tpfS2JW0Gi7+kNL150ns6QNhWKkC3umur8lOuhQULqvpuNy9GW44tNnXWqv8NAb2LW32C34REaEX6nNskh/HVPl1rDTEt1MAdLf/hn9TIYWxTmwc5mp3ANvF3JNx4X0NTn/kuZ6ZICocBuXTrmB40apVcMV4o+ne1kf6jjg3ddftCXLoGwiV3rATo73O0POIogR69Juh7Iumn4eFXJPoF7XKiWBWrHWN3kKhYhpo1Qymf+ADy5rrQU6SEjbLcYaKjdYMZJBbeyweZQ== 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:35 +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:35 +0000 From: Yangtao Li To: Philipp Zabel , Kunihiko Hayashi , Masami Hiramatsu Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 7/7] reset: uniphier-glue: Use devm_platform_get_and_ioremap_resource() Date: Tue, 4 Jul 2023 20:02:11 +0800 Message-Id: <20230704120211.38122-7-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230704120211.38122-1-frank.li@vivo.com> References: <20230704120211.38122-1-frank.li@vivo.com> 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: 44ea1a41-4f56-4f00-37c2-08db7c868db8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z+Wb3fNgF7XEBDQuRT0UZueVUyfUUqdM1pn70QkpyI81ZzB7IhSccJMsljhkRQARSTh+wvA88ck+wuf7FrajdUAYoCMCX8VtEc8Eheri75rB3SFPZ+RWOozACbUJF8eK1PR/K0fXyxzVJWqq6mBN7MoagwujVC9Ypug4QpXT0IexpwzFMuTocTa2y8a1kR3n3MLJZcQIe40ZV++jtHmi+n8pqgwbEjXtJI//4zmHKBmQJ9NkTXYu/0mJryvGhbgTCLSZn0nTSA0RZaLrNtlyRjkKfd12JcUEfXq541K3fknYg3wydMc3c/anIV1hPkpNUKCINoU1ingOCX1Sq+XhIxVBOWJF+j76hxJ9BPggD85wqP2lIY2qr7MlYDzbZ1dwvrZyApP/rVggLz2hDtrWSgZ3c31wyKBiJz15psK/6SN/NuS/cHcK5geRY/OQZihr/UUWW3h8U5B1c7MbUawnsEBdohjH5CWuZA0a1h3rrrybJ1H7J67IwwcUsWahajJzxcbPtFYF50iCMQ9uLb2+E2h9CwMsDQ3IH475eYJ6H2o5klE8fDk3vp/bLqML8VCEkqL0t/c8L5gv717CrNjgD7xUOGkpQFwQAb9vt8G5WRgY1LhT9FL6UOiiCyhm6AE1 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);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: wK0GncXI+sX0AlWvLeCfAklMgDX4595kdsIVk5QRcNaIlu373B1DGx0U5txstcyrlicF7mU2A6RucY0/eSX+fgs5fq6lFjuNzQw24yGrtDPxxmgmd3zxGSZPJAW1Bv5cB9QHkl2SokkJnNb4j12RWyXbaXTw1d5FGCtMXOBIR4/QJHyKyOXfReHfN9yNrcQL1UsEc4YsyJzKmzF/uvlWBW2m83p4F3IVnuMs+WGWV16jq6EiIJM/hkTlYkV7H25ZdsuPEH9gkssRBMmxPAEM0W1ndbDWBh7uhQdZCFWDmEEDVnBsLdJgDaIBU0RveL35bQ/P2hikSYn15/lhCp1s+hwcJpVHC0dMz8Ui7/aKx5lmw3ZQGtyRNZHaCc+ZwS054DfaXBY0nlIS91XBsHcEhDPy9Kd5HICWFDLWYz4zZ78t5sGP2HU3XBV8F3Y2CVWVA7wBTi8w2sOjn9pfiCakHu8POtFq+9ayYdwmkun3TUF+syqenGxU6w7w4lYKptb5WV5jhv2nm6SXhPVzbhPB0pZpDCBrYKpuiU59MiNXR361WMV8cQNJtjc5MzdvktKjJQ4I8Y125WOGW0Ao+Z42MF28BgnrD6HhIIR+NaI+wfnKdtqsiK/rUOFfBK3VqjEj15mcoLbB+WwZa8np8wZ1nY0nv5RHXLrnJAussG7+7QKaidhuxdPZbb6kOvktPyPl0LxjHJHZXiBN1g2yj2RIvipDso41YdvMYTfVBbaXEqMLX3sFfTlM27IevO8QZWYXmBko73bPEosrPL9eZDu8DYRj2wxoT60eMt/RUYrbcoLMf+QxgAOV3MQNBfNoStnhv+4yCHqTP6U4nNmyw8ckpKvBm1ATHJvZ4+wvMWAOF6ZwzdAtj0/sCQaphonUbr3JQStPMzLKaf7Ce34nR8R3lmzOB3+b2t4rJwpoBdPENA5dZe7vxFOqnd95Cdoy4HLAcW0ZLYYg525rLDTHg0vB0sJNKIrSSOB8ykuvRvRN0jfA8nUT2lLA03rRX+pNyFezESVfYJsyTlkIZimeprMEyFP1BWyLC5WmtlPTbGCpTGpUEDfY/SXEuSEYGtPdR+vld6l9gofePuzrn7yCRqxCpUOj7Odbw7mRPTGthNRBHSu6ramRhZce+Rzght+JO4Wzh778/LvwDHNbEc9PREWzlnR1of8cl8dRFrTjOYc2dHMIITKjQkoqfvR9B335VGlG4hyQbue/N7JNJ+9Af/WOISedWvy0UNRvkbuXU+KEMfe2hWTHciGE50hlYJpc7us1kP+E/CD/437R0oEQMfpXShOau6rpDYPAWAvQS8C8NUj1OuqsHZ6mxZXHDjTzYBAhLUxZK3Tu3I8ElG9ReSAE5tGkt2+hN4dwRvtgbHFVQdr4qpNFB4niB5/MK5w9QN7N1H5s2QWfrooQK6lZvVQ0AbXB6F3iy0PbyGm37W6Wsx17XO0ujTZUhVv70bMfTrnDknh5Uz/JfO5VN2lh0XVBFqGNQXLUycCDyE1ORiKXIAxTbXJxslDzvNBRSdfrvVMR8JZHlHfpIEt1dfPBPk1QkvW8+aQuIfJRwQa0ab24WhmhJh/+TknaEMBjyH3MZiF9 X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 44ea1a41-4f56-4f00-37c2-08db7c868db8 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:35.0487 (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: 3dKyUrzz0e6FhFzat4Bs38fKcL/c0ossZXiBhVg9YTbiZfzIA+F/pUPT2OeZvByJdqnCJhF6wWfrupcs5Iya4w== 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770492031377698293?= X-GMAIL-MSGID: =?utf-8?q?1770492031377698293?= 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 --- drivers/reset/reset-uniphier-glue.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/reset/reset-uniphier-glue.c b/drivers/reset/reset-uniphier-glue.c index 15abac9fc72c..8f315dcb10a8 100644 --- a/drivers/reset/reset-uniphier-glue.c +++ b/drivers/reset/reset-uniphier-glue.c @@ -58,8 +58,7 @@ static int uniphier_glue_reset_probe(struct platform_device *pdev) priv->data->nrsts > MAX_RSTS)) return -EINVAL; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->rdata.membase = devm_ioremap_resource(dev, res); + priv->rdata.membase = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->rdata.membase)) return PTR_ERR(priv->rdata.membase);