Skip to contentSkip to conversation

drm/omap: Remove unused omapdss_find_device_by_node

PATCH New [email protected] 1 participant 1 message Feb 25, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/omap: Remove unused omapdss_find_device_by_node

From: "Dr. David Alan Gilbert" <[email protected]>

The last use of omapdss_find_device_by_node() was removed by 2020's commit 811860ddceac ("drm/omap: drop unused DSS next pointer")

Remove it.

---
 drivers/gpu/drm/omapdrm/dss/base.c    | 12 ------------
 drivers/gpu/drm/omapdrm/dss/omapdss.h |  1 -
 2 files changed, 13 deletions(-)
drivers/gpu/drm/omapdrm/dss/base.c +0 -12
index a4ac113e1690..f8be1399a79c 100644
@@ -73,18 +73,6 @@ void omapdss_device_put(struct omap_dss_device *dssdev)
 	put_device(dssdev->dev);
 }
 
-struct omap_dss_device *omapdss_find_device_by_node(struct device_node *node)
-{
-	struct omap_dss_device *dssdev;
-
-	list_for_each_entry(dssdev, &omapdss_devices_list, list) {
-		if (dssdev->dev->of_node == node)
-			return omapdss_device_get(dssdev);
-	}
-
-	return NULL;
-}
-
 /*
  * Search for the next output device starting at @from. Release the reference to
  * the @from device, and acquire a reference to the returned device if found.
drivers/gpu/drm/omapdrm/dss/omapdss.h +0 -1
index 4c22c09c93d5..95897a1b711b 100644
@@ -240,7 +240,6 @@ void omapdss_device_register(struct omap_dss_device *dssdev);
 void omapdss_device_unregister(struct omap_dss_device *dssdev);
 struct omap_dss_device *omapdss_device_get(struct omap_dss_device *dssdev);
 void omapdss_device_put(struct omap_dss_device *dssdev);
-struct omap_dss_device *omapdss_find_device_by_node(struct device_node *node);
 int omapdss_device_connect(struct dss_device *dss,
 			   struct omap_dss_device *dst);
 void omapdss_device_disconnect(struct dss_device *dss,
Signature · 1 line
2.48.1