Skip to content

Commit

Permalink
OMAPDSS: APPLY: remove runtime_get
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tomi Valkeinen committed Dec 2, 2011
1 parent f1577ce commit e70f98a
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions drivers/video/omap2/dss/apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand All @@ -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)
Expand Down

0 comments on commit e70f98a

Please sign in to comment.