mirror of https://lore.kernel.org/linux-amlogic/
 help / color / mirror / Atom feed
* [PATCH 08/23] drm/meson: Make use of the helper component_compare_of
       [not found] <20220214060819.7334-1-yong.wu@mediatek.com>
@ 2022-02-14  6:08 ` Yong Wu
  0 siblings, 0 replies; only message in thread
From: Yong Wu @ 2022-02-14  6:08 UTC (permalink / raw)
  To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
  Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
	Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
	Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
	linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
	Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
	Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
	Neil Armstrong, Kevin Hilman, Jerome Brunet, Martin Blumenstingl,
	linux-amlogic

Use the common compare helper from component.

Cc: Neil Armstrong <narmstrong@baylibre.com>
Cc: Kevin Hilman <khilman@baylibre.com>
Cc: Jerome Brunet <jbrunet@baylibre.com>
Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Cc: linux-amlogic@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
 drivers/gpu/drm/meson/meson_drv.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/gpu/drm/meson/meson_drv.c b/drivers/gpu/drm/meson/meson_drv.c
index 80f1d439841a..3a9768a135bb 100644
--- a/drivers/gpu/drm/meson/meson_drv.c
+++ b/drivers/gpu/drm/meson/meson_drv.c
@@ -423,14 +423,6 @@ static int __maybe_unused meson_drv_pm_resume(struct device *dev)
 	return drm_mode_config_helper_resume(priv->drm);
 }
 
-static int compare_of(struct device *dev, void *data)
-{
-	DRM_DEBUG_DRIVER("Comparing of node %pOF with %pOF\n",
-			 dev->of_node, data);
-
-	return dev->of_node == data;
-}
-
 static void meson_drv_shutdown(struct platform_device *pdev)
 {
 	struct meson_drm *priv = dev_get_drvdata(&pdev->dev);
@@ -473,7 +465,7 @@ static int meson_drv_probe(struct platform_device *pdev)
 		dev_dbg(&pdev->dev, "parent %pOF remote match add %pOF parent %s\n",
 			np, remote, dev_name(&pdev->dev));
 
-		component_match_add(&pdev->dev, &match, compare_of, remote);
+		component_match_add(&pdev->dev, &match, component_compare_of, remote);
 
 		of_node_put(remote);
 
-- 
2.18.0


_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-14  6:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20220214060819.7334-1-yong.wu@mediatek.com>
2022-02-14  6:08 ` [PATCH 08/23] drm/meson: Make use of the helper component_compare_of Yong Wu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®