diff options
author | Laurent Pinchart | 2018-02-28 22:53:16 +0100 |
---|---|---|
committer | Tomi Valkeinen | 2018-09-03 15:13:25 +0200 |
commit | 9184f8d94c389c4712b4f393cca4a09c9e770514 (patch) | |
tree | 1ae545557db59ebd99d3657460cda799b9307166 /drivers/gpu/drm/omapdrm/dss/output.c | |
parent | drm/omap: dss: Create global list of all omap_dss_device instances (diff) | |
download | kernel-qcow2-linux-9184f8d94c389c4712b4f393cca4a09c9e770514.tar.gz kernel-qcow2-linux-9184f8d94c389c4712b4f393cca4a09c9e770514.tar.xz kernel-qcow2-linux-9184f8d94c389c4712b4f393cca4a09c9e770514.zip |
drm/omap: dss: Create and use omapdss_device_is_registered()
The omapdss_component_is_loaded() function test whether a component is
loaded by checking whether it is present in the displays list or the
outputs list. Simplify the implementation by checking for the component
in the global omap_dss_device list.
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>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/output.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/dss/output.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/output.c b/drivers/gpu/drm/omapdrm/dss/output.c index 1a2d24906edd..7f18153a1bde 100644 --- a/drivers/gpu/drm/omapdrm/dss/output.c +++ b/drivers/gpu/drm/omapdrm/dss/output.c @@ -109,19 +109,6 @@ void omapdss_unregister_output(struct omap_dss_device *out) } EXPORT_SYMBOL(omapdss_unregister_output); -bool omapdss_component_is_output(struct device_node *node) -{ - struct omap_dss_device *out; - - list_for_each_entry(out, &output_list, output_list) { - if (out->dev->of_node == node) - return true; - } - - return false; -} -EXPORT_SYMBOL(omapdss_component_is_output); - struct omap_dss_device *omap_dss_get_output(enum omap_dss_output_id id) { struct omap_dss_device *out; |