OMAPDSS: APPLY: remove runtime_get
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 16 Nov 2011 14:53:44 +0000 (16:53 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:51 +0000 (08:54 +0200)
apply.c no longer touches any registers if an output is not enabled.
This means that we don't need to do dispc_runtime_get() anymore, and the
calls can be removed.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/apply.c

index 443f31e74a758da1025a494cfb59b1b9fce7d94f..4cc7c37acbb41e8d8dc7b99030e0697c0f25db83 100644 (file)
@@ -688,16 +688,11 @@ static void omap_dss_mgr_apply_mgr(struct omap_overlay_manager *mgr)
 
 int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
 {
-       int r;
        unsigned long flags;
        struct omap_overlay *ovl;
 
        DSSDBG("omap_dss_mgr_apply(%s)\n", mgr->name);
 
-       r = dispc_runtime_get();
-       if (r)
-               return r;
-
        spin_lock_irqsave(&data_lock, flags);
 
        /* Configure overlays */
@@ -711,9 +706,7 @@ int omap_dss_mgr_apply(struct omap_overlay_manager *mgr)
 
        spin_unlock_irqrestore(&data_lock, flags);
 
-       dispc_runtime_put();
-
-       return r;
+       return 0;
 }
 
 static void dss_apply_ovl_enable(struct omap_overlay *ovl, bool enable)