Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7308141rwl; Thu, 23 Mar 2023 02:24:28 -0700 (PDT) X-Google-Smtp-Source: AK7set9icFh1IuS3W1UJalB/grm2HwqnMQo4Vs2uKbNYKrp/CcLwggDrpepq1tdU9Q1isgBLLS9x X-Received: by 2002:a17:90b:390c:b0:237:d59d:5f89 with SMTP id ob12-20020a17090b390c00b00237d59d5f89mr7501442pjb.4.1679563467965; Thu, 23 Mar 2023 02:24:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679563467; cv=none; d=google.com; s=arc-20160816; b=nmyz0PytUihb/kYonlW1TshThV/CNWVmEbfqOxNIu4hkzFucjBDS81Blgqw9lNHpUC ubgvV4tXSsjGp1M68C9y0viUkBYpogre7qbtERQgAZbg/0xoqv8R8xF1Nr/jG7TAMKuo 1TbOVn4seG3HgilgABB+aFTd0b9f8aeebklGYqoE8IDAk8rAbWgEBXey4xwwHwp0rVZE LMui9DwhGE//Ml9HnfsqEHruCHmKJOGtytUVvNQP0aeEWsEfoxF9PArMIBPXszSQT+PG AV4cz+eGkrEQCjhXU6y7/nvoaiBHjdv4ym1lwLXBLeLN9GFXMutnbbGkYCTPMAcXL2Xi P72Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:content-language:subject:reply-to :from:user-agent:mime-version:date:message-id:dkim-signature; bh=pcJdmtSJI8n1Nq4yaF0gcqHdFoOGhaeQhrSp6datg7Q=; b=cxI1GwYaYc1x8WwPY1pbg/YKtstwqX7ehYVvn7fn8/dDkYNbu7nGtfgntgwact1z+R t88nH+o85g24Dg6hH2p11ziiV6k7Ob8ni2KR7V/yCgPrWN4fXCrUqsn1t/tTzB496FV2 1DZMckhUENJE1THdtMfeIUWUmJOqaGiQmo+Md5XxwF9sG9d7lrRZ1VwrrO9Bc1rYSYY4 uSwpWDQdgRTiNGgzypmkTxq+DsmYZcTOjjKauDI2MD3SvmcF+mY4SvAiIVVml1J4KnXW 4rfWEaG9aR19yzeC/DKYZHLkcOTfWypZJu2xPw8K29ztKS1MfgErkdwfaIbawy1T/jAi ilhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tezoRFyw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a17090311c500b001990dd91a9csi18919406plh.199.2023.03.23.02.24.15; Thu, 23 Mar 2023 02:24:27 -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; dkim=pass header.i=@linaro.org header.s=google header.b=tezoRFyw; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231355AbjCWJNB (ORCPT + 99 others); Thu, 23 Mar 2023 05:13:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbjCWJM6 (ORCPT ); Thu, 23 Mar 2023 05:12:58 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD9081ABCF for ; Thu, 23 Mar 2023 02:12:52 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id fm20-20020a05600c0c1400b003ead37e6588so655681wmb.5 for ; Thu, 23 Mar 2023 02:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679562771; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to; bh=pcJdmtSJI8n1Nq4yaF0gcqHdFoOGhaeQhrSp6datg7Q=; b=tezoRFywjrJYM2cPo82G+050C9EqrtNYasjj5H1ILpRj5RBay2nsOggrjKWGe4qLj8 lIgP+6tc/tjRto2YBQA7h0jgpS45PvUqdAwymVi+STSGo4kXR6KH9yc7ksik6lxNsHh6 tCLHi+TcF4zPCwUv6nabo08VTbBxbc5ZFx62ZnnJ2ywW5X4LAClQVPutjWPNXZw45KPi Cqb8PJYuZULxR7ybkuPi63oRqbNubnOZ18U8agVCoNDsO8gcG2Ffq2tFtTzLXM0SYgfU MfI+rqF7pUpmdyczAq8YmFBKAsP1w7y+IjM1qUu/zPxSe6o84oAgyRpOwjTL4aTHDoHI yt/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679562771; h=content-transfer-encoding:in-reply-to:organization:references:cc:to :content-language:subject:reply-to:from:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pcJdmtSJI8n1Nq4yaF0gcqHdFoOGhaeQhrSp6datg7Q=; b=tSnsZL1wJJN0VJV7LvtP3WOHkd0d2lNya8PVk78HD7Pc5IYc3oCA/bzLiF1obisjO7 gVWCj+ZPuBe1BDov33n2adoCYafjpX4pqpvsme50BEWa81tk12NYgvsnVVDaPCdJpyrb /DaFVAbyopdGqZv/bdifge8+PLz4/weBTZ9RgMeZlXUED3qzH8xI0i10rlUgAxidvywC BgkKsD7LwqZPWbjWU7BPOj50deWdgyzQ+hxTdyIMOlC4nSmTXVYYOwtijYdiB9qXvdaH E7GpPl9ocj2SLEDr8Rdxd4DeA1/JZBWL+6oTiDZ5+W6lcMvtZ6Enzr5oa6+nTFh4p3x1 GaZQ== X-Gm-Message-State: AO0yUKUxnMYOn1Ib+at1wbiUqxS5FRJ30BiJw70+1TyXsESdBhprhs4B zj7K6Z5TCvmaD9qfPhCh+iK5NQ== X-Received: by 2002:a7b:c4d1:0:b0:3e2:662:ade6 with SMTP id g17-20020a7bc4d1000000b003e20662ade6mr1757659wmk.26.1679562771430; Thu, 23 Mar 2023 02:12:51 -0700 (PDT) Received: from [192.168.7.188] (679773502.box.freepro.com. [212.114.21.58]) by smtp.gmail.com with ESMTPSA id t8-20020a05600c198800b003ede03e4369sm1264366wmq.33.2023.03.23.02.12.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 23 Mar 2023 02:12:51 -0700 (PDT) Message-ID: Date: Thu, 23 Mar 2023 10:12:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCH -next] phy: dphy: Use devm_platform_ioremap_resource() Content-Language: en-US To: Yang Li 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 References: <20230323073534.75037-1-yang.lee@linux.alibaba.com> Organization: Linaro Developer Services In-Reply-To: <20230323073534.75037-1-yang.lee@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 On 23/03/2023 08:35, Yang Li wrote: > 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); > Reviewed-by: Neil Armstrong