Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7074929pxv; Fri, 30 Jul 2021 09:25:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyOHMwRzx2Hopj2g9Wgh3HUdmTgdHNRdcXnxY6IXuVPAGnaiURjgUW1E+1MJHGBjgRbDL1P X-Received: by 2002:a17:906:3686:: with SMTP id a6mr3277939ejc.331.1627662320753; Fri, 30 Jul 2021 09:25:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627662320; cv=none; d=google.com; s=arc-20160816; b=E/gqLyAXNwFXmE+fwok1FIs9FqWaLIyONm5gadPvAy5jDsxBMKVCuah2sNVGFgFvrB a/QSq89qWcE75zer1d+H/Oe+Wcn27141u6XXI72qTfUtGPSBeTVOKFJO45p76R8+LtCN ffJuW/tRoe/3Ya1VvCSN4gJGqtFeIbRXBiqhPgJYrObb0ysVXBcfRsWd/4OmwmvPbqP/ ICV3dZBlvPaBQ1d8XK8qQ3RObpKcQJeUxQ5W1AbAKVpUnJOEtF6LmBngGVil21aCTdzK mEvwE8Jd38ANlOisVquBFBD4M5m/2MyVehqZhqGyNNJs6icFG5Y7ddSqDV9n23XXR+mu xF1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KGK/M73YDDSVqIQ7ROWFLYVja8faqXESpz5ldjc+Buw=; b=mMvEWhLqLPRnRvLsreX4lvwoDymveY3xSyvYsd72iLKvsmwfEe7ACUs68PJnX39n+j lKA5sO/ejHjESinPc+ZZFi4eMncpNPmDwXfpHIWEAj0fgAe2WGvqmflfaA+kMVKjIF4N HJ6XcsKVWRl+XDbzKgfNV8FmsOXsmXZHPurUNfs3kCRMkiblZ24/nBVvvkDXc0mfrRqL 9irJNo34ov87A81ZyHi15zIiTtr8/Zdif99pz1/fB+yMrxM8cbqWnnTwItg9FdMKn1am zVYevTnBL7I/uvbMiQImR8g4ZALWPV4Qh1h9NInxyRd2wpyEcEj4Fd+VLrqI1jfRnEv+ 9GnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pi4Pi51y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z18si2117455edc.216.2021.07.30.09.24.56; Fri, 30 Jul 2021 09:25:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pi4Pi51y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229724AbhG3QX1 (ORCPT + 99 others); Fri, 30 Jul 2021 12:23:27 -0400 Received: from mail.kernel.org ([198.145.29.99]:52390 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbhG3QX0 (ORCPT ); Fri, 30 Jul 2021 12:23:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id BDF9660F4B; Fri, 30 Jul 2021 16:23:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627662201; bh=FW5LB4/droceMkapj9/opDRSSB08Hj67ZWxOidv6Bak=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=pi4Pi51yNSIBNhSaMwGePr9C1LErMMOjm7VEeu4XA+T1AoBJXCXLGmB8IrxI1e9M9 nQnmJWRnj1dEdcCOyUhUASV58lg6mp8Q9Ch3HUwvo+M1dye9AB0F+qXy56B2fcuIL/ 7yekJ7i6GVA27N22fvtF6si8l9zFY4GT5rxgQq2NQAS5Dq0oMzhdZOivz31N74h7Nk aHOOn63rsKKmynnbkepxhaPwWuzDvmlg+3JxANOZXAENVNOzRAfw28Hod0z5Ejznzw M68M4cIHmzUAo0PYkJMwhcdiiHP27Sm3RhbIw2ew0QAaHWd8z7SZn4SYwA/sDM82Ju Son813H1X1wtg== Received: by mail-ed1-f44.google.com with SMTP id p21so13934540edi.9; Fri, 30 Jul 2021 09:23:21 -0700 (PDT) X-Gm-Message-State: AOAM532ZYV22ULwtX4p25ZZWyaSdFIeqnEx0DQndjaFGhfEc5/JPF203 /WcB2NwfJe8b5y2aoHe0RsbjCBmFUtbeJmgriA== X-Received: by 2002:a05:6402:718:: with SMTP id w24mr3884876edx.49.1627662200337; Fri, 30 Jul 2021 09:23:20 -0700 (PDT) MIME-Version: 1.0 References: <1627459111-2907-1-git-send-email-chunfeng.yun@mediatek.com> <1627459111-2907-7-git-send-email-chunfeng.yun@mediatek.com> In-Reply-To: <1627459111-2907-7-git-send-email-chunfeng.yun@mediatek.com> From: Chun-Kuang Hu Date: Sat, 31 Jul 2021 00:23:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 7/9] phy: phy-mtk-hdmi: convert to devm_platform_ioremap_resource To: Chunfeng Yun Cc: Vinod Koul , Rob Herring , Chun-Kuang Hu , Kishon Vijay Abraham I , Philipp Zabel , Matthias Brugger , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-phy@lists.infradead.org, DTML , linux-kernel , DRI Development , Eddie Hung Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Chunfeng: Chunfeng Yun =E6=96=BC 2021=E5=B9=B47=E6=9C=882= 8=E6=97=A5 =E9=80=B1=E4=B8=89 =E4=B8=8B=E5=8D=883:59=E5=AF=AB=E9=81=93=EF= =BC=9A > > Use devm_platform_ioremap_resource to simplify code Acked-by: Chun-Kuang Hu > > Signed-off-by: Chunfeng Yun > --- > drivers/phy/mediatek/phy-mtk-hdmi.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/phy/mediatek/phy-mtk-hdmi.c b/drivers/phy/mediatek/p= hy-mtk-hdmi.c > index 8ad8f717ef43..5fb4217fb8e0 100644 > --- a/drivers/phy/mediatek/phy-mtk-hdmi.c > +++ b/drivers/phy/mediatek/phy-mtk-hdmi.c > @@ -100,7 +100,6 @@ static int mtk_hdmi_phy_probe(struct platform_device = *pdev) > { > struct device *dev =3D &pdev->dev; > struct mtk_hdmi_phy *hdmi_phy; > - struct resource *mem; > struct clk *ref_clk; > const char *ref_clk_name; > struct clk_init_data clk_init =3D { > @@ -116,11 +115,9 @@ static int mtk_hdmi_phy_probe(struct platform_device= *pdev) > if (!hdmi_phy) > return -ENOMEM; > > - mem =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - hdmi_phy->regs =3D devm_ioremap_resource(dev, mem); > - if (IS_ERR(hdmi_phy->regs)) { > + hdmi_phy->regs =3D devm_platform_ioremap_resource(pdev, 0); > + if (IS_ERR(hdmi_phy->regs)) > return PTR_ERR(hdmi_phy->regs); > - } > > ref_clk =3D devm_clk_get(dev, "pll_ref"); > if (IS_ERR(ref_clk)) { > -- > 2.18.0 >