Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7818AC4332F for ; Mon, 14 Feb 2022 10:03:17 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id DE80910E364; Mon, 14 Feb 2022 10:03:16 +0000 (UTC) Received: from aposti.net (aposti.net [89.234.176.197]) by gabe.freedesktop.org (Postfix) with ESMTPS id 1738710E364 for ; Mon, 14 Feb 2022 10:03:16 +0000 (UTC) Date: Mon, 14 Feb 2022 10:03:01 +0000 From: Paul Cercueil Subject: Re: [PATCH 06/23] drm/ingenic: Make use of the helper component_compare_of To: Yong Wu Message-Id: <19HA7R.NEIIBC5SNORY1@crapouillou.net> In-Reply-To: <20220214060819.7334-7-yong.wu@mediatek.com> References: <20220214060819.7334-1-yong.wu@mediatek.com> <20220214060819.7334-7-yong.wu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , Liviu Dudau , dri-devel@lists.freedesktop.org, Sebastian Reichel , Srinivas Kandagatla , Laurent Pinchart , Will Deacon , Krzysztof Kozlowski , Joerg Roedel , James Wang , linux-mips@vger.kernel.org, Chun-Kuang Hu , Arnd Bergmann , linux-mediatek@lists.infradead.org, Hsin-Yi Wang , Matthias Brugger , linux-arm-kernel@lists.infradead.org, AngeloGioacchino Del Regno , srv_heupstream@mediatek.com, Stephen Boyd , Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Tomasz Figa , iommu@lists.linux-foundation.org, Robin Murphy Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Hi, Le lun., f=E9vr. 14 2022 at 14:08:02 +0800, Yong Wu=20 a =E9crit : > Use the common compare helper from component. >=20 > Cc: Paul Cercueil > Cc: linux-mips@vger.kernel.org > Signed-off-by: Yong Wu Acked-by: Paul Cercueil Cheers, -Paul > --- > drivers/gpu/drm/ingenic/ingenic-drm-drv.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) >=20 > diff --git a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c=20 > b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > index b4943a56be09..23b8f012b418 100644 > --- a/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > +++ b/drivers/gpu/drm/ingenic/ingenic-drm-drv.c > @@ -1322,11 +1322,6 @@ static int=20 > ingenic_drm_bind_with_components(struct device *dev) > return ingenic_drm_bind(dev, true); > } >=20 > -static int compare_of(struct device *dev, void *data) > -{ > - return dev->of_node =3D=3D data; > -} > - > static void ingenic_drm_unbind(struct device *dev) > { > struct ingenic_drm *priv =3D dev_get_drvdata(dev); > @@ -1360,7 +1355,7 @@ static int ingenic_drm_probe(struct=20 > platform_device *pdev) > if (!np) > return ingenic_drm_bind(dev, false); >=20 > - drm_of_component_match_add(dev, &match, compare_of, np); > + drm_of_component_match_add(dev, &match, component_compare_of, np); > of_node_put(np); >=20 > return component_master_add_with_match(dev, &ingenic_master_ops,=20 > match); > -- > 2.18.0 >=20