Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp693508rwl; Fri, 24 Mar 2023 00:10:37 -0700 (PDT) X-Google-Smtp-Source: AKy350ZimZSoz7rLxSqr1ct2bDeppZ88yXr6HF6Yaxk1WmYYCyQN4YzGvX5Mw1ilE7ymZyvfwNzG X-Received: by 2002:a17:90b:1bc4:b0:23f:6d4e:72b3 with SMTP id oa4-20020a17090b1bc400b0023f6d4e72b3mr1806504pjb.25.1679641837715; Fri, 24 Mar 2023 00:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679641837; cv=none; d=google.com; s=arc-20160816; b=IYcaiI3TBDpKoWlWLDrPu91ye2HNnwbB5eqyT+Lmt4uyR6dxNvJxegzsBFIc3/WnTS kfH8t8QV+Bcse2tZCxZBbcxbj7XQ0VKwqRxfOBivoBJvwsijdDtlofnPvb41qrqcJ12Z 9PMyykHpm7dC8A7pUTZJg66iiKvQcTBgd1Gu7ej6OdywRn6Y4eK989eP/llygiE3vhHE N+TRqNR9RbWAr/CLTRmqtp1VqtvRU/sEztxPzdHGDlsN/24WiD7QbSMIB/bt6oJQk4F2 iCF9KaisNUY9Li4Ss4laIix7jaJ/g0lj8OegUCu8QNqbxeCMDDmehVKUMnlOQUlQKXIE 4eDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=yMorc6KMkt1khItz0vivrV06yT7p3ZIS/LiI31N1p4A=; b=ghz/GF3X0wkHChpFNBjBDfkH1XhigIPay0u86D8Fct0CTsiiQaL51fVbEFngjRFijC T84xU9innrGBTbzVGXU2OsEk4ZCne6l9xp9YLYmUo8uVF6ryWFfODNsqM9ZUBEXxYvM7 rs23ISLFLsT5zuP/G4KdkH7fD9AB3t32JTqWLd5/aDUmh1MyU7j0xZupEeYWA90aF34m aJjCTYznGOBEX0XkcR2nfpazA4ZMOrC2CMYAFli7UrpBF7B56cW1tslO/9YD+uRm6tGW E5TFfNKA+kg3z7tsN0axJ9cNQa3pmwI8IhFF7emcsjl+JPuFfcl0WDkr2y/9IoBFy73U 8JGw== ARC-Authentication-Results: i=1; mx.google.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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j23-20020a635517000000b00503059b8b2fsi19952872pgb.220.2023.03.24.00.10.25; Fri, 24 Mar 2023 00:10:37 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231466AbjCXGwB (ORCPT + 99 others); Fri, 24 Mar 2023 02:52:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231254AbjCXGv7 (ORCPT ); Fri, 24 Mar 2023 02:51:59 -0400 Received: from out30-113.freemail.mail.aliyun.com (out30-113.freemail.mail.aliyun.com [115.124.30.113]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4993A23DB3 for ; Thu, 23 Mar 2023 23:51:56 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R961e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045168;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VeWiEYf_1679640712; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeWiEYf_1679640712) by smtp.aliyun-inc.com; Fri, 24 Mar 2023 14:51:53 +0800 From: Yang Li To: srinivas.kandagatla@linaro.org, hayashi.kunihiko@socionext.com, mhiramat@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] nvmem: uniphier-efuse: Use devm_platform_get_and_ioremap_resource() Date: Fri, 24 Mar 2023 14:51:50 +0800 Message-Id: <20230324065150.119906-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-8.0 required=5.0 tests=ENV_AND_HDR_SPF_MATCH, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=unavailable 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 According to commit 890cc39a8799 ("drivers: provide devm_platform_get_and_ioremap_resource()"), 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: Yang Li --- drivers/nvmem/uniphier-efuse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/nvmem/uniphier-efuse.c b/drivers/nvmem/uniphier-efuse.c index aca910b3b6f8..0a1dbb80537e 100644 --- a/drivers/nvmem/uniphier-efuse.c +++ b/drivers/nvmem/uniphier-efuse.c @@ -41,8 +41,7 @@ static int uniphier_efuse_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - priv->base = devm_ioremap_resource(dev, res); + priv->base = devm_platform_get_and_ioremap_resource(pdev, 0, &res); if (IS_ERR(priv->base)) return PTR_ERR(priv->base); -- 2.20.1.7.g153144c