From patchwork Thu Jul 6 04:05:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13303150 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B3285EB64DD for ; Thu, 6 Jul 2023 04:05:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=f4pX/W2vTcPhCMoHKN2S7KoUFDw/ihQ6iJA5aC4EpLI=; b=goqhIsYW5KizNw l2aB2NZy6MWXTs9asTMuXZFRWeuCSg1zjds2Wnwni/rwLibNSnelnIASBy8LzC8h4+ONW2qwmgEa8 xbZe5qSHp7/VSMcOuRCM4Z5D+0QlC4AgR12i2vCVtciXiokQTBLYih+CqOb2ZJfoAw5zakzun4xCB mTIfiRud3HLI346iQlSk6LGMFJdIW9zqBdSMStLM3BZfKBsbKIUc41Ags1o91zv8mYnV4HtaJxiMZ ZEwE3s4bBzS7Ha64qpOsZ9PhON0YVGLHz5dgHGtxuaFgUWTmeYIWsHth2pFRLNC+c1AseQ5V2L4fl I2q05EVnrcZLvxRhkiVw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qHGFO-000K3W-29; Thu, 06 Jul 2023 04:05:38 +0000 Received: from mail-psaapc01on2070a.outbound.protection.outlook.com ([2a01:111:f400:feae::70a] helo=APC01-PSA-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qHGFL-000K1r-2J; Thu, 06 Jul 2023 04:05:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SJ4mFJO0hxa3evZr5DGeIlF7L0mgr5OHSWP5WAKUdSn0+nzd00t5grN4EFL7wqaRy5S7VQMkqtlJT/sBatVN9sU0Ns+Wc2U6FF07zm7cevKC/+s4EoqDLYUKyY4Fh7x1gQvZwZ0Pu9OyiK8D5fhOhW7SZnFF47kaJ3ndcITV5Srk7lt9jN1Ax8kEPs1G81jAwRpXzbyHPrXdzlFqqghtLaUEijRf2FuFqkGHmBjKSAuR7kw1zH1cRWxvQFhnTegqJlqKyEcd+aHslgSjM+xGJFVSg7Lw9UcYr43usFmCXuAuCCYq2d8NV0qwdUM8vEWDnvpf1dQgBL/2M/ByHHMWtg== 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=F60DtyyxcXu4qEz2ynm/lRwj6z8vRuMbXVwcNW0mlZw=; b=QpG1Hbw4gdqB03i20sUQcjxvrk0bBB2ZPLk4wHynihOw8ECAr0S36/Jb6QioYgPqSOp2rHgx3Tl2axymAyc60pegtPyJhtIZ2szaqGE7opXlQNZOvOfVTkhRaoF2cOzGdcJ8wNyWOPB/EqjaMBr7IOAy5TCX4ys4m+Hwlqe9HjldeJ3zmpV7ICfCbmGiYH9ElHNugnCuN39KLbXJihAuwuGDKjgno0ErBxJl8EyhdTy7VwBe12G19doKNNTisjKVEB/ATsILrqDU8aGHub6+qekFViNmcBD+Otqm2kzdq35UiFfS5qhsC48NaaSQKi3gV9jjITtj2A8HAjKwRA6usA== 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=F60DtyyxcXu4qEz2ynm/lRwj6z8vRuMbXVwcNW0mlZw=; b=lqeVuRtNMGOgPGQxWp7p3/8UO1NeXg04pST+27o1+O8qs92ucBzCalnFAW7NQf6pKSNiIAArybACc6rwVcF0a+OD7m0N/EZEBLrnUQZLnOxn2dSnrxt+btJWJ3FC2qgiYWid3QLgQDVzzp+2sTH+g6jKRAY3hfTMp6gBG7sFTzg8LHBQ2CobgIL4BwVKUelCdY2OyiwTjxpOcyDfw5iupJdj3oruWdxuUVg9Mjj8VNbzy/XY9qMVZxJoy4qpFWKue0AvfKGsjbdO/pv1+BourO9aK1U6xYOeG9qH/EM8uwKV6k0W9RtVDy2qIa6qjJ6VWX/v7KpTtPR+Y/BM7wuUGQ== 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 PUZPR06MB4548.apcprd06.prod.outlook.com (2603:1096:301:a7::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6565.17; Thu, 6 Jul 2023 04:05:21 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::fa0e:6c06:7474:285c%5]) with mapi id 15.20.6565.016; Thu, 6 Jul 2023 04:05:21 +0000 From: Yangtao Li To: Srinivas Kandagatla , Heiko Stuebner Cc: Yangtao Li , linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/8] nvmem: rockchip-efuse: Use devm_platform_get_and_ioremap_resource() Date: Thu, 6 Jul 2023 12:05:01 +0800 Message-Id: <20230706040504.34057-5-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230706040504.34057-1-frank.li@vivo.com> References: <20230706040504.34057-1-frank.li@vivo.com> X-ClientProxiedBy: SG3P274CA0017.SGPP274.PROD.OUTLOOK.COM (2603:1096:4:be::29) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|PUZPR06MB4548:EE_ X-MS-Office365-Filtering-Correlation-Id: b3892b29-7c27-41e5-b060-08db7dd6375f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: f3lpRpGOrOFtY7KNMTtcU0KP/eVCsmIpsKW/ntowGEjkuhKq74jjwErdLD5c7/+0QM/tN0UTPN78ieuPBW5aa44gfWVUifqQ7oY/YZ+lyuZrsWS9Vu4bry0siGlaXMDBxdGDr/WVOFm1bOOBNNsQXDb3XrCGyYKd0KlB9tStLXkk+CGbhHxAO8b8qtHEX8sXLPAgNmVCr8fxKTnnTtCnyc77o5/8YXv75Ogc9PNVQ9gnBd5CN277lqBnJVwdC+FdgnZK/h9Mr1I2YyLHMaUlHr/fhVeS3krv55aQLhKlii2C9DxY3dwzFq8riaGzd/m1E348ch43cWHiCf9hMYl+k7VvtrvVV7QUbodt6fyoGORx45CZCERhcHJAanEPCqChM37Rtf6FrABYrY9jsWgKN7bGyUesuMib+uBFmsHGZ/gv+qmqlZvOwgPx2ma7oAoG8vel1HWYo97NWZ11pl/CerM2CC/qh6cne3yfJRLGuyOr54YsHdjRTgj3nQBt5f4oqLbRAWCbI/yqu55gWt9QCVQAzvmGMTJgX9yO0J/mVNlok4NiID1jpmxejWho3DN+/SAex9TZxAhAKkI5jllJr3Y4CJ36SLsCCzE/BQ/TH3g3+jCIBVtC4ynQ94mroJUu 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)(396003)(136003)(39860400002)(346002)(366004)(376002)(451199021)(41300700001)(8936002)(8676002)(36756003)(110136005)(4744005)(316002)(5660300002)(2906002)(6486002)(66556008)(4326008)(66476007)(6512007)(6666004)(478600001)(52116002)(38100700002)(86362001)(38350700002)(186003)(66946007)(2616005)(1076003)(83380400001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: kv7CJ2ZmZuwkbMhfQSPjJF5UjBy7OIq86WdMZWe4tKZGUlaEwCLasZa/22RrAB6TwuXW18M7MnRVguHkmhA8BtQh12aCO/pAz/gU5wMD8P8fgtzw2TATpg2U2xncVoFZf5lYgmr8wIQzeJikaqtPuouC6KSLyGVteHy98NgzORYyMNwSBVbilKhl1AxnsousJB0ZYwd6W5460+ONlP8pf4PjTMFbqy2onC+XhmpxQNFXTWh+dwS5LNvhKwNMM3RVDbhW1tENIBrUF/uLT0RhtsY46rj6EpwSIt26qi3P6Q7D2jJTtU8L4em0aLNfQTqAg7dswjS4lPENRuPhvaOFLxUBwnsdjRXIzJPMRXBGfQu62sPjKjPh0VBVCowbgYsf01Yg+Bssj80bzwpZlX3aunbjRIt76uPnZ3yCN4qFE4Aem3BTtsXV5Hp8zwYA7lHYY4tKjeA0MsfOiQ5vyNK0MCfDTL0IcofTsdkl7LLh4DQMsZfjJb5pq+5ZYQObkGGK7dvA/nDiXtT2rk+KVTsXRrEPakNR0I/17Qci/tuGLa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ant-Network-Message-Id: b3892b29-7c27-41e5-b060-08db7dd6375f X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2023 04:05:21.0731 (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: 5b6q4OhwG6lik8oMckUFHpR3mlzANLvMWZPCt6iNrL2ykHlnvzhubezwarxZsvRQWEkiPK0tdFmln2LeCh7i1A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PUZPR06MB4548 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230705_210535_759104_D085E23A X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org 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 Reviewed-by: Heiko Stuebner --- drivers/nvmem/rockchip-efuse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/rockchip-efuse.c b/drivers/nvmem/rockchip-efuse.c index e4579de5d014..4004c5bece42 100644 --- a/drivers/nvmem/rockchip-efuse.c +++ b/drivers/nvmem/rockchip-efuse.c @@ -267,8 +267,7 @@ static int rockchip_efuse_probe(struct platform_device *pdev) if (!efuse) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - efuse->base = devm_ioremap_resource(dev, res); + efuse->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(efuse->base)) return PTR_ERR(efuse->base);