diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-09-07 15:48:45 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-09-18 16:15:04 +0300 |
commit | 5eeb55f8703d2af3181599c085b21ce023a0f942 (patch) | |
tree | d17774a6683e19ab1fa89048279946117b91a404 /drivers/video/omap2/dss/overlay.c | |
parent | 6b41785836f184df585e33cd6b940852fb9299ed (diff) |
OMAPDSS: cleanup dss_recheck_connections further
Cleanup dss_recheck_connections, move and rename it to a static
dss_init_connections function inside display.c. Improve the function to
return errors, and implement a matching dss_uninit_connections that can
be used to free the mgr->dssdev link.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/dss/overlay.c')
-rw-r--r-- | drivers/video/omap2/dss/overlay.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/video/omap2/dss/overlay.c b/drivers/video/omap2/dss/overlay.c index 1bf05efffe1..52455a0609c 100644 --- a/drivers/video/omap2/dss/overlay.c +++ b/drivers/video/omap2/dss/overlay.c @@ -105,38 +105,6 @@ void dss_init_overlays(struct platform_device *pdev) } } -/* connect overlays to the new device, if not already connected. if force - * selected, connect always. */ -void dss_recheck_connections(struct omap_dss_device *dssdev, bool force) -{ - struct omap_overlay_manager *mgr = NULL; - int i; - - mgr = omap_dss_get_overlay_manager(dssdev->channel); - - if (!mgr->device || force) { - if (mgr->device) - mgr->unset_device(mgr); - mgr->set_device(mgr, dssdev); - } - - if (mgr) { - dispc_runtime_get(); - - for (i = 0; i < dss_feat_get_num_ovls(); i++) { - struct omap_overlay *ovl; - ovl = omap_dss_get_overlay(i); - if (!ovl->manager || force) { - if (ovl->manager) - ovl->unset_manager(ovl); - ovl->set_manager(ovl, mgr); - } - } - - dispc_runtime_put(); - } -} - void dss_uninit_overlays(struct platform_device *pdev) { int i; |