Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7219850rwl; Thu, 23 Mar 2023 00:45:27 -0700 (PDT) X-Google-Smtp-Source: AK7set8yqmqdukhRl515CmNAfjPy737dimh7L9za5ztPeo/FfTYSKxDOKR2FW/alIh3ijwNXFCh5 X-Received: by 2002:a17:903:120a:b0:19e:7d67:84e6 with SMTP id l10-20020a170903120a00b0019e7d6784e6mr6631761plh.0.1679557526819; Thu, 23 Mar 2023 00:45:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679557526; cv=none; d=google.com; s=arc-20160816; b=AtspCMvsRnLRVXgNDYxihlh8tJGZpsAM/sf0znFcYIRoqKsACmltvGIHP/ilJEzYiH obfuOg02wvEb2CNxlIrqCgPPcF9jU2G+xXMSN/DiHLAFmFQIf4cebt+M8cnRpfb73QUu jspGvojvVFI0iGgYmUf8cwJZpHRWRzXmdCUEbySy91lJv/xbl7R6+MO+W+kxtBKM+b2n 0Bvtwtdhbk4PlZjrJKsBwg/IfQl2zTvUUjBV3c9bf2Qg6cIH5cWaN5N5Awcf3/+sNDcZ CihxuEc5/JoVEt7OzTzJcY6ArNOo+R+e/Txat0AAGNEntV5W9iMVF8yrBUoZdDfDd8mq K/KQ== 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=o4HRK2eY3WCwQm6fgNbH8bfmZY8fPQsRzI7vzNxHSJ8=; b=glnZ18VI5qIFpwGpo625WzbjMCaAFSFGKSMAfLU2V5BFQPPWaQgQvHzaLRTSNZ8fvA ztSexh1A1sxOYmq0RIgqzHZIxM9OJ9SG5+e7YeJG6FFUIUoUOQhyfoLyeny+HzudcdF6 jP1Qq5xrU9/ial1qzGTKSZbqLyASFC8o+qijPiqChbK+Hc6XDIQzr5j7a7xOrRrWPYl/ 6ku2qWjeQIdfrPME8n67nUlKmqyhKLJeXMV/LZmPaR7cC1Aiq2zPXIDNRss0bjrC+qcv tfQ7UwdlehDOCH0OpyjxvCQB1w6xphtLNPaDDG6u5Sz7BJ5XoWL4rgy5u89m5u75V+5R dkvQ== 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 d11-20020a63f24b000000b0050c03dc7252si18955625pgk.337.2023.03.23.00.45.14; Thu, 23 Mar 2023 00:45:26 -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 S230111AbjCWHfr (ORCPT + 99 others); Thu, 23 Mar 2023 03:35:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229980AbjCWHfn (ORCPT ); Thu, 23 Mar 2023 03:35:43 -0400 Received: from out30-119.freemail.mail.aliyun.com (out30-119.freemail.mail.aliyun.com [115.124.30.119]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D50281816F for ; Thu, 23 Mar 2023 00:35:39 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R151e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0VeTb.bu_1679556935; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VeTb.bu_1679556935) by smtp.aliyun-inc.com; Thu, 23 Mar 2023 15:35:36 +0800 From: Yang Li To: neil.armstrong@linaro.org Cc: khilman@baylibre.com, vkoul@kernel.org, kishon@kernel.org, jbrunet@baylibre.com, martin.blumenstingl@googlemail.com, linux-phy@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li Subject: [PATCH -next] phy: dphy: Use devm_platform_ioremap_resource() Date: Thu, 23 Mar 2023 15:35:34 +0800 Message-Id: <20230323073534.75037-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/phy/amlogic/phy-meson-axg-mipi-dphy.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c b/drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c index 32d1ff09befb..6e9af79e152c 100644 --- a/drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c +++ b/drivers/phy/amlogic/phy-meson-axg-mipi-dphy.c @@ -335,7 +335,6 @@ static int phy_meson_axg_mipi_dphy_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct phy_provider *phy_provider; - struct resource *res; struct phy_meson_axg_mipi_dphy_priv *priv; struct phy *phy; void __iomem *base; @@ -348,8 +347,7 @@ static int phy_meson_axg_mipi_dphy_probe(struct platform_device *pdev) priv->dev = dev; platform_set_drvdata(pdev, priv); - 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); -- 2.20.1.7.g153144c