aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2017-10-13 10:58:59 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-12-19 03:32:00 -0500
commit2cd3e6834d49747933bbd806b0bb10a19a15d774 (patch)
treedee7788028a670a8e34fbb87a4a923692ce71632
parent7fb15c480eea29a16f6a0568ce3ee5d5f40ef9c6 (diff)
drm: omapdrm: Remove unused omap_dss_find_device() function
The omap_dss_find_device() function is unused. Remove it. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
-rw-r--r--drivers/gpu/drm/omapdrm/dss/display.c14
-rw-r--r--drivers/gpu/drm/omapdrm/dss/omapdss.h3
2 files changed, 0 insertions, 17 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/display.c b/drivers/gpu/drm/omapdrm/dss/display.c
index 42279933790e..8c77a2d20969 100644
--- a/drivers/gpu/drm/omapdrm/dss/display.c
+++ b/drivers/gpu/drm/omapdrm/dss/display.c
@@ -175,17 +175,3 @@ out:
175 return dssdev; 175 return dssdev;
176} 176}
177EXPORT_SYMBOL(omap_dss_get_next_device); 177EXPORT_SYMBOL(omap_dss_get_next_device);
178
179struct omap_dss_device *omap_dss_find_device(void *data,
180 int (*match)(struct omap_dss_device *dssdev, void *data))
181{
182 struct omap_dss_device *dssdev = NULL;
183
184 while ((dssdev = omap_dss_get_next_device(dssdev)) != NULL) {
185 if (match(dssdev, data))
186 return dssdev;
187 }
188
189 return NULL;
190}
191EXPORT_SYMBOL(omap_dss_find_device);
diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h
index 6aa4c377492d..ac2be3e22b7c 100644
--- a/drivers/gpu/drm/omapdrm/dss/omapdss.h
+++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h
@@ -594,9 +594,6 @@ struct omap_dss_device *omap_dss_get_device(struct omap_dss_device *dssdev);
594void omap_dss_put_device(struct omap_dss_device *dssdev); 594void omap_dss_put_device(struct omap_dss_device *dssdev);
595#define for_each_dss_dev(d) while ((d = omap_dss_get_next_device(d)) != NULL) 595#define for_each_dss_dev(d) while ((d = omap_dss_get_next_device(d)) != NULL)
596struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from); 596struct omap_dss_device *omap_dss_get_next_device(struct omap_dss_device *from);
597struct omap_dss_device *omap_dss_find_device(void *data,
598 int (*match)(struct omap_dss_device *dssdev, void *data));
599
600 597
601int omap_dss_get_num_overlay_managers(void); 598int omap_dss_get_num_overlay_managers(void);
602 599