Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp7076576pxv; Fri, 30 Jul 2021 09:27:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyABgt7L8qNaPh68Dgw3j1rvMS96czzDnoNmMTCO9nrSrTFrZaNsFXtZrPtjeysyi3SXZww X-Received: by 2002:a5d:818b:: with SMTP id u11mr2969659ion.43.1627662461388; Fri, 30 Jul 2021 09:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627662461; cv=none; d=google.com; s=arc-20160816; b=sfrIq7W+885GuXqA46yQVDlhTRJQjiceijJDFe/5HLvBsrUi8kAJzhQ+PDe5QeXs2S lB15S7J1oJCGCiT+Z3dnBTLxxxm/KBApwt0YgCkBSdc4f9iFrNJMMhwKe1dFfxvLkHev EJRco7ozL3A4tw/RZaCD7Xg0RZ3E8ROGCi0n9SRh8CboQ+9C4RV72T8egHBeJeMiQZ/b QyVkpVSijUtmbJxM0Sg9c9r9Q9scwT9pJvRg+imi80IzFNL6gSgwXNnuwwEAPE4ZUCF3 JafH7rb06s/MdE9Oaix7gP8l2HGHhPiH4L3Wk/GPda9f97qt0l7nz7kCl1qQ68bpaW/d pdnQ== 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=uel503Fq5C4IrHDr2UnwqJmNaJzLF0vSUT81Ig0An+A=; b=kmPwLiFM6/xT3KNFiN+vfK69dwJg8AxTYYxZLyocCwcq1db4t9b0Pe2Fw/yJJOnvTJ 76lZ9Cbdlj4PcI3Jc9Fm6MUSMRYBKfWXMolpJj0RRfphoNaP6eIAShGDJXJjsTNhyrqX QWUVneSR2OCRmusxOvgqv2YQCaFyy0dkT0sxtBoy7x1SgqV24ZxhS3ZEhYh+ovfDzEt+ gQBwN4Rrc5A2TyRUxi8GYBbiovbrpHvNmsiuUQQHlPFWLaWKAiPD8hLlUhJi52/EqkZg OcaSFv/jpPeflIY9IzomfyjKovz0rfDwMmiujSoGER7gHTHvr3isgiTHtyyyPpqtm0Bw M7uQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jS9BFccO; 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 f16si970839ile.51.2021.07.30.09.27.29; Fri, 30 Jul 2021 09:27:41 -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=jS9BFccO; 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 S229773AbhG3QZl (ORCPT + 99 others); Fri, 30 Jul 2021 12:25:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:53254 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbhG3QZl (ORCPT ); Fri, 30 Jul 2021 12:25:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2706A60FE7; Fri, 30 Jul 2021 16:25:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1627662336; bh=sA63E+oqJJ7UWdv9uF5sfRhQ4j6Gx9VX+xOpdEdo6h0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=jS9BFccOPTpKkCjJFTCBO88F3DMk2jMCRhK5QLV98IdkyJEYmWlVu2687SC1u+k/Y fjZbpEiAHibvKnttArOqEu2LzesWS7xeTlvTq4jNS30COCDt8qjQzLOSTtSWv/Aa0x XtwrqpL6Kx+8m3x1IBYfsNOo256Uu5JRBU6r8bgZcjlC/rk7Nf+qlKOb9EobGPA1Gb S6NAsJnD9lbiirauTk8rFXJIlvRXyXNDo1Ch4G+ZeHoLIaesAidiGp91wZIGcDdtde Nn4tjlBX4lTDcO5FVG8L4+Tpa1FKXmGqpH6Cwyh07jM2tNIcwbkQqjLVrYEITzrOer GxNFMn8eJKapQ== Received: by mail-ej1-f50.google.com with SMTP id hw6so3864477ejc.10; Fri, 30 Jul 2021 09:25:36 -0700 (PDT) X-Gm-Message-State: AOAM533HeBdzAp/MShK/nmxJaApIEHjBwcvf5Ncv4cKzvxPQL8cUXuKq p1rSTVmKu08YCognvln93Nmnene78uWgB08a/w== X-Received: by 2002:a17:906:2497:: with SMTP id e23mr3371194ejb.194.1627662334694; Fri, 30 Jul 2021 09:25:34 -0700 (PDT) MIME-Version: 1.0 References: <1627459111-2907-1-git-send-email-chunfeng.yun@mediatek.com> <1627459111-2907-9-git-send-email-chunfeng.yun@mediatek.com> In-Reply-To: <1627459111-2907-9-git-send-email-chunfeng.yun@mediatek.com> From: Chun-Kuang Hu Date: Sat, 31 Jul 2021 00:25:23 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 9/9] phy: phy-mtk-mipi-dsi: 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-mipi-dsi.c | 7 ++----- > 1 file changed, 2 insertions(+), 5 deletions(-) > > diff --git a/drivers/phy/mediatek/phy-mtk-mipi-dsi.c b/drivers/phy/mediat= ek/phy-mtk-mipi-dsi.c > index 61c942fbf4a1..28ad9403c441 100644 > --- a/drivers/phy/mediatek/phy-mtk-mipi-dsi.c > +++ b/drivers/phy/mediatek/phy-mtk-mipi-dsi.c > @@ -130,7 +130,6 @@ static int mtk_mipi_tx_probe(struct platform_device *= pdev) > { > struct device *dev =3D &pdev->dev; > struct mtk_mipi_tx *mipi_tx; > - struct resource *mem; > const char *ref_clk_name; > struct clk *ref_clk; > struct clk_init_data clk_init =3D { > @@ -148,11 +147,9 @@ static int mtk_mipi_tx_probe(struct platform_device = *pdev) > > mipi_tx->driver_data =3D of_device_get_match_data(dev); > > - mem =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - mipi_tx->regs =3D devm_ioremap_resource(dev, mem); > - if (IS_ERR(mipi_tx->regs)) { > + mipi_tx->regs =3D devm_platform_ioremap_resource(pdev, 0); > + if (IS_ERR(mipi_tx->regs)) > return PTR_ERR(mipi_tx->regs); > - } > > ref_clk =3D devm_clk_get(dev, NULL); > if (IS_ERR(ref_clk)) { > -- > 2.18.0 >