mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-25 00:52:45 -04:00
drm/omap: remove use of omapdss_find_mgr_from_display()
In order to remove uses of 'struct omap_overlay_manager' we need to get rid of using omapdss_find_mgr_from_display() when initializing omapdrm. Instead of using omapdss_find_mgr_from_display() and mgr->id to find the dispc channel used for the given display, we can instead use omapdss_find_output_from_display(), and get the output->dispc_channel from there. We can also remove omapdss_find_mgr_from_display() as it's no longer used. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
@@ -169,24 +169,6 @@ struct omap_dss_device *omapdss_find_output_from_display(struct omap_dss_device
|
||||
}
|
||||
EXPORT_SYMBOL(omapdss_find_output_from_display);
|
||||
|
||||
struct omap_overlay_manager *omapdss_find_mgr_from_display(struct omap_dss_device *dssdev)
|
||||
{
|
||||
struct omap_dss_device *out;
|
||||
struct omap_overlay_manager *mgr;
|
||||
|
||||
out = omapdss_find_output_from_display(dssdev);
|
||||
|
||||
if (out == NULL)
|
||||
return NULL;
|
||||
|
||||
mgr = out->manager;
|
||||
|
||||
omap_dss_put_device(out);
|
||||
|
||||
return mgr;
|
||||
}
|
||||
EXPORT_SYMBOL(omapdss_find_mgr_from_display);
|
||||
|
||||
static const struct dss_mgr_ops *dss_mgr_ops;
|
||||
|
||||
int dss_install_mgr_ops(const struct dss_mgr_ops *mgr_ops)
|
||||
|
||||
Reference in New Issue
Block a user