Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31851932rwd; Fri, 7 Jul 2023 05:29:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlFSktl9oIY6PPMOxcZIzo4ngXlB5iSptNvKecKKlBSjI+h61AU7flq1VyXb/oOqFTvUHgA+ X-Received: by 2002:a92:d950:0:b0:345:f3f9:6b93 with SMTP id l16-20020a92d950000000b00345f3f96b93mr1891690ilq.32.1688732988796; Fri, 07 Jul 2023 05:29:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688732988; cv=none; d=google.com; s=arc-20160816; b=lWC2Q0M8ajy1S1ISocpTTFA6/Zm339AJ8m/yWWCz1Hob3QZHOpETeYntT1NOHhf/7J k7w9DLcdic6NgHSggNOg+/bGGuHDWGx2xwq9zlv80snyf/1iSVO4J4/rAWFxgZbSN00v TJlS4WyQDnHc2j/foyLB4A9PQVdnvJTJGiBTdcHE72sNZIXj+8++5EvTDyfjANHcZ4Wp VDXObpvZY6X4JTY3A/fBoFD7PMhn2PN97eguX5OpHYA2mJoYQ4W2BWWlddPXo6k/7Zrp p3zRIOkaHI2CrCvLdnwZGi8n8dPGEXVX8skd87ILyXqsBdVII7RUvs/bI0f1VG1l/0q3 ZIAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=rJA6+/g6hyQtclq9OA+60uWzgmpTlAiLIyqyQBByGJo=; fh=CHU7wxOXtQ0p9IscaxuTr6No1PvXK/QgTaqxipcQmK8=; b=wXBiAmwYpm0P1FH/HagZV7zLN5SHXkeyN7JX55sRGUl1atRPInLMe2vjB18Y8GFkXf ZaLymZWV5uSGaNveJR1171SSJLOssAeZqsn3Wn/30FiLZJ518605Jm0tOtTgsYsb81CJ k83H36+Rc/zhkv9RLPXg1+kslxnGNq1/Xr2bXDBSSO2gdiXGZCgg3N9hIbgFOU37arUY fa9lP6VXYiXQ5u8nMNv94/SBUjc7xK1vXpeY5cLPrfJ6B8EyhICDNNb3YnEqLYlYP6jz jEKWFGiRd1Il+FhjKplDL6ht5J7AfKtrDkNeOppETS5uh/a5kORpL7EOK8qcfyi/NKKJ 1Q2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=atGuYPEU; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w4-20020a656944000000b0053fb354c191si3752999pgq.861.2023.07.07.05.29.35; Fri, 07 Jul 2023 05:29:48 -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=@gmail.com header.s=20221208 header.b=atGuYPEU; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232406AbjGGM2Z (ORCPT + 99 others); Fri, 7 Jul 2023 08:28:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231492AbjGGM2Y (ORCPT ); Fri, 7 Jul 2023 08:28:24 -0400 Received: from mail-wr1-x436.google.com (mail-wr1-x436.google.com [IPv6:2a00:1450:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6282172B; Fri, 7 Jul 2023 05:28:23 -0700 (PDT) Received: by mail-wr1-x436.google.com with SMTP id ffacd0b85a97d-3143b88faebso1966859f8f.3; Fri, 07 Jul 2023 05:28:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688732902; x=1691324902; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=rJA6+/g6hyQtclq9OA+60uWzgmpTlAiLIyqyQBByGJo=; b=atGuYPEU5d8ttk2i/U9gnbpEE4VH7IYHznzcHE2YFGDaXUSXZPbWWiSKJo9smMCcm9 QanNiFXqWkMHtvwoAfquB56dS1SLhkBJKXkysGit8pu6kdhw4mjeHwiAXcJVl2QYJFwV LuktSzppQnRXpfSO5jS8t3NyAoq6icvGiVhaDm0ctYXpo9hbjdLmh5HbKdF1dymTrvkA Vm0KsP1KGwPj0cSDGV/ByLnhp4L+Iim8Ikw8AB2cAXZYwDqNvqiaHGEycjlRMT+eqo1a D+R/iITQVozvANPIy+r/1c6juSWDHwhOAJRSdXD3z4dVtyftbiOrC6GdpT1JIwz6dZuS UEvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688732902; x=1691324902; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=rJA6+/g6hyQtclq9OA+60uWzgmpTlAiLIyqyQBByGJo=; b=d2gSoD3JUf9vsVrU4sq4traiJviX3fP4akWeaerMiuvJXu6HCOFlRGRF3h5pCpvrc5 4nWuaWQMjQRthGj3Gdw2XXCVmMYfsPmLRBecSGRCaHJTfLCYpwLjD+EUAi0SE6Fz7MUT +k+78wiGuApWR/NFinXGjB/SmiRuV8aZS0I0TGwNG20q0WhGa88uPvF4Bfy8dpc9X/K9 G0LFl+EL4sVDwvvNoeSa8QDUQxRoxnss7Pw77lxYS8s9tAR2t7mJLPLCZ6DsUS0kKODe QKtCCSrKPoUrTDmcbJ26MrS5tIePNw1/AR3akgAJKo5wJYDTjNGzXBgFsa6OUKI7EqgA 9dBQ== X-Gm-Message-State: ABy/qLaVpG7MYHW5v6Q3pwhveX2oYuWUvAWHM71lAHgGIAxNMxIOynLv 0nc0PK/XRnGqezpvw2bLbvc= X-Received: by 2002:a5d:460c:0:b0:314:41e9:9a92 with SMTP id t12-20020a5d460c000000b0031441e99a92mr4294457wrq.24.1688732901438; Fri, 07 Jul 2023 05:28:21 -0700 (PDT) Received: from orome (p200300e41f4b7100f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f4b:7100:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id i14-20020adffdce000000b003141f96ed36sm4418753wrs.0.2023.07.07.05.28.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jul 2023 05:28:21 -0700 (PDT) Date: Fri, 7 Jul 2023 14:28:19 +0200 From: Thierry Reding To: Yangtao Li Cc: Mikko Perttunen , David Airlie , Daniel Vetter , Jonathan Hunter , dri-devel@lists.freedesktop.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 12/18] drm/tegra: dpaux: Convert to devm_platform_ioremap_resource() Message-ID: References: <20230707072034.48977-1-frank.li@vivo.com> <20230707072034.48977-12-frank.li@vivo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qEQdviPueCKP2hNt" Content-Disposition: inline In-Reply-To: <20230707072034.48977-12-frank.li@vivo.com> User-Agent: Mutt/2.2.10 (2023-03-25) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --qEQdviPueCKP2hNt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jul 07, 2023 at 03:20:28PM +0800, Yangtao Li wrote: > Use devm_platform_ioremap_resource() to simplify code. >=20 > Signed-off-by: Yangtao Li > --- > drivers/gpu/drm/tegra/dpaux.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) >=20 > diff --git a/drivers/gpu/drm/tegra/dpaux.c b/drivers/gpu/drm/tegra/dpaux.c > index 4d2677dcd831..f120897ce4b3 100644 > --- a/drivers/gpu/drm/tegra/dpaux.c > +++ b/drivers/gpu/drm/tegra/dpaux.c > @@ -447,7 +447,6 @@ static const struct pinmux_ops tegra_dpaux_pinmux_ops= =3D { > static int tegra_dpaux_probe(struct platform_device *pdev) > { > struct tegra_dpaux *dpaux; > - struct resource *regs; > u32 value; > int err; > =20 > @@ -461,14 +460,13 @@ static int tegra_dpaux_probe(struct platform_device= *pdev) > INIT_LIST_HEAD(&dpaux->list); > dpaux->dev =3D &pdev->dev; > =20 > - regs =3D platform_get_resource(pdev, IORESOURCE_MEM, 0); > - dpaux->regs =3D devm_ioremap_resource(&pdev->dev, regs); > + dpaux->regs =3D devm_platform_ioremap_resource(pdev, 0); > if (IS_ERR(dpaux->regs)) > return PTR_ERR(dpaux->regs); > =20 > dpaux->irq =3D platform_get_irq(pdev, 0); > if (dpaux->irq < 0) > - return -ENXIO; > + return dpaux->irq; This change has nothing to do with what the commit message says. It looks correct, but it should be a separate patch. Thierry --qEQdviPueCKP2hNt Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmSoBOMACgkQ3SOs138+ s6E1Cg/7BwHVxlGOZc5s4JgJCBnTWhzOzzu19uGD50cxCUqf+eWXsgMq60G9QhLU 1AlrpwVh8W+1+Iig9hcMUPM365j5a4PmiLcxTp1FFKkQKQB0DdKk2mAWFgbD4RXt WlmMXFbelc5qw1YNF3nNYZtuGE8lLzCGI0LV4hOs24KmXJBx0sRSuKkwVB7rGb86 pjVGv8XMLCtr0Ij8p8Zp1q3rne4F5WUOhS5BP/+p4HP4eNlXD31mwHsRhZkirNUC ncsT+vGmle/FjBiyEFxOFnaii2O4bkvV8b9KbUVHjV3kDDPCqVMvUidKkXVY8Vjw 8S3Agm8dz6dLcWqeqpQhg9pCcMs+m+6wkAAYgIb2H9vZXmyg/UXH+oLceF/MyYnR tKGzr4AutYFm3aar7bVwfy9taSkcFScfP3yJauZSEkLFc9/4rsY+FbBsZwYmarq6 +rME9qUjwapHEyppQXiAV9FOA2GVVAc5X19RCmG9Da/LA/lDPrinhkE2/ngZZsQH nf5cN25ravD+qKcDgYtJlda72nSwo4H2zXbPE4q1poLr7B7Mye8Qvuups0Ninsem IqlqueYQXfgprwTG3WyQbpXJ3cSV8CaGqW6svI4MtcQiRVKfLWMrFj+HJ/1MRI46 QlC0mhvtb015qqQuDdB9nqy04Xm88lmiPXxFSnA+CiQWbT1M+6M= =k0Vf -----END PGP SIGNATURE----- --qEQdviPueCKP2hNt--