Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp695063rwl; Fri, 24 Mar 2023 00:12:23 -0700 (PDT) X-Google-Smtp-Source: AKy350Y/Tva1JfUmscI+mQ1DBWKL3qxTKdIFhvgPQTx2PDY5pflU/Oorm88RAqQpA3ot5c5DA9Wz X-Received: by 2002:a62:7bcf:0:b0:625:e346:c9e with SMTP id w198-20020a627bcf000000b00625e3460c9emr2066952pfc.6.1679641942927; Fri, 24 Mar 2023 00:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679641942; cv=none; d=google.com; s=arc-20160816; b=p8wC99905kLP6ngYnmATnhLoFFszzpmF490GNp1+7kMi6t3uqycob0G+iN9UiwCufG MOEvEytuKjzy5dwxuOrN+HdxDsBauvgrhA4tR2cnnDSBD2G3pmtgdxuRBoJX0gHEFvLl ZpbX/l9heKBuvhQXHuRGBVqv5/mh7le70OBWxTN1WTIFBJnkE4EnmXH39OwWEL79Cz5X 4wOwsFfYKw6YIS1RSCWeXNwwDopqJ0zRWd75hjotIT3jjDHHUteGAiX0pWllbiGB1nSQ Qjos++Ftdb9SdPY0FS5ctJDBGXXns+hHI6TemXf+8u2/AvY2NK1Mku9IO7FLxu5JlnQ7 r9Yg== 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=dKst4P/bFaF/HiE1qRjPtyUWizT8BKs78vc7LKxTt1c=; b=IMPjth8KXlsRFA1DXwISbsBEDj1sJAaYogGHMTZr1B00BTfsAdI9eDGWmTL9txgAqA +M+UKylBf18M8WmS0eW7Q8wqkmmX5Qvo0HaRLCD2hdFYzF20qW45SQAzvLe49r3JJHnH mh72nEpN2y5XFs87pilxJKROQ3b0Jom5MM1XMF6vFMfUZ7oCbb+NbMLYGGq1FQ361HgL +vr/uTJogWJjBV4ZJFEbFO4vwbE6MR8Y/uaQrw4D3S9r3BJegJVTt4s0TqAublSlty3F v7D+srUByfpTj7h7BsEH29Q611RgL4Al9nkp3yX4cjXI0wOYJS5ZHSgnzgISe3v54Hsp hivg== 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 s3-20020a056a00194300b00608ab285f1csi19012298pfk.199.2023.03.24.00.12.11; Fri, 24 Mar 2023 00:12:22 -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 S229729AbjCXHL2 (ORCPT + 99 others); Fri, 24 Mar 2023 03:11:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229536AbjCXHL0 (ORCPT ); Fri, 24 Mar 2023 03:11:26 -0400 Received: from out30-99.freemail.mail.aliyun.com (out30-99.freemail.mail.aliyun.com [115.124.30.99]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108CC25BB7 for ; Fri, 24 Mar 2023 00:11:24 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046060;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---0VeWr-7k_1679641881; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeWr-7k_1679641881) by smtp.aliyun-inc.com; Fri, 24 Mar 2023 15:11:22 +0800 From: Yang Li To: srinivas.kandagatla@linaro.org, heiko@sntech.de Cc: linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] nvmem: rockchip-efuse: Use devm_platform_get_and_ioremap_resource() Date: Fri, 24 Mar 2023 15:11:20 +0800 Message-Id: <20230324071120.18853-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_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/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); -- 2.20.1.7.g153144c