Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp750930rwl; Fri, 24 Mar 2023 01:11:10 -0700 (PDT) X-Google-Smtp-Source: AKy350YoCfq+VoTdJEpejg4oZWiUghuEQEt2K+zURfHnPmqZscr73h7l0amTFCswK5VLrUfBBUbu X-Received: by 2002:a17:906:6a2a:b0:878:711d:9310 with SMTP id qw42-20020a1709066a2a00b00878711d9310mr2279344ejc.1.1679645470528; Fri, 24 Mar 2023 01:11:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679645470; cv=none; d=google.com; s=arc-20160816; b=mOiHE/MP8O917F853Binu2AZ35h3+W6xFLZSTfIW3VWfDCUMtTpEPPJGFSeohQVbtd 9Pp6tfqq9NcbMgrre7xoYzhAezmoosKROTJEaiRqUAM2RPq08vhzrwkF86IzJlsiG/3z r+NNW4Wv0QYyGIg5N0rI/AUesv7UUVnu4Y1MplLJtC593KjvfUbDHVs6maPbthDZK1km G8/1Y7fEcRDZTpD91r8w0WlyQcsFA5uEasT0PPhP8JQzS0P/H7YtIdNXMFr0ntmVkX5b O4uyFkSCof/rkYmZlZoUYTAhOokfN/tlwpE7nSJKLOyugwIjBIGswZwRW890MDxw7sBY yB0g== 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=f17tT76NLFIczRzyub2QysVqU4LXaMQiG7lbK9MedPs=; b=DejlCeUmjIXPytkikLVHn0Ma5Y6lAgROVtmnnnTmdB5eUIffHJVAW0zou9ehNFnm5Q YjdYe/vIok5qbLiWYybHY01Wk1ZWJoh9dWNhwrLDXnMwjzVuN7ffHCeD9+AOgnZZ3qqZ y3DyuHNYksTaiLwF7yvED0H20bDVM+9PDGmqIymRMR8ngevZWJplMwjGta7Q+2ediJug Xb1ND/BJO0porDrqy9RVzv8xHIOeEuVwi4e/N5kvKhLZmyZt309TtxcoZzsMU+idcurW pCEBg5dIMwvTbYuIeWL9Xs/vgUutsDg7JXP7QWVCxRK1vrAv4Ch3kYhxCv7C+u/QeXoV zo+Q== 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 ce23-20020a170906b25700b0092127059e12si20601806ejb.57.2023.03.24.01.10.41; Fri, 24 Mar 2023 01:11:10 -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 S231422AbjCXHtJ (ORCPT + 99 others); Fri, 24 Mar 2023 03:49:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230098AbjCXHtH (ORCPT ); Fri, 24 Mar 2023 03:49:07 -0400 Received: from out30-130.freemail.mail.aliyun.com (out30-130.freemail.mail.aliyun.com [115.124.30.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B4D9231FC for ; Fri, 24 Mar 2023 00:49:06 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R631e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=9;SR=0;TI=SMTPD_---0VeX.BSe_1679644142; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeX.BSe_1679644142) by smtp.aliyun-inc.com; Fri, 24 Mar 2023 15:49:03 +0800 From: Yang Li To: srinivas.kandagatla@linaro.org, neil.armstrong@linaro.org, khilman@baylibre.com Cc: jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] nvmem: meson-mx-efuse: Use devm_platform_ioremap_resource() Date: Fri, 24 Mar 2023 15:49:01 +0800 Message-Id: <20230324074901.72506-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 7945f929f1a7 ("drivers: provide devm_platform_ioremap_resource()"), convert platform_get_resource(), devm_ioremap_resource() to a single call to use devm_platform_ioremap_resource(), as this is exactly what this function does. Signed-off-by: Yang Li --- drivers/nvmem/meson-mx-efuse.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvmem/meson-mx-efuse.c b/drivers/nvmem/meson-mx-efuse.c index 13eb14316f46..461e3ad87bcd 100644 --- a/drivers/nvmem/meson-mx-efuse.c +++ b/drivers/nvmem/meson-mx-efuse.c @@ -194,7 +194,6 @@ static int meson_mx_efuse_probe(struct platform_device *pdev) { const struct meson_mx_efuse_platform_data *drvdata; struct meson_mx_efuse *efuse; - struct resource *res; drvdata = of_device_get_match_data(&pdev->dev); if (!drvdata) @@ -204,8 +203,7 @@ static int meson_mx_efuse_probe(struct platform_device *pdev) if (!efuse) return -ENOMEM; - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - efuse->base = devm_ioremap_resource(&pdev->dev, res); + efuse->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(efuse->base)) return PTR_ERR(efuse->base); -- 2.20.1.7.g153144c