Skip to content

Commit

Permalink
OMAP: DSS2: OMAPFB: remove dead code
Browse files Browse the repository at this point in the history
Remove old unused code lying inside #if 0.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Tomi Valkeinen committed May 12, 2011
1 parent c42ced6 commit e1d0178
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions drivers/video/omap2/omapfb/omapfb-main.c
Original file line number Diff line number Diff line change
Expand Up @@ -757,35 +757,6 @@ static int omapfb_open(struct fb_info *fbi, int user)

static int omapfb_release(struct fb_info *fbi, int user)
{
#if 0
struct omapfb_info *ofbi = FB2OFB(fbi);
struct omapfb2_device *fbdev = ofbi->fbdev;
struct omap_dss_device *display = fb2display(fbi);

DBG("Closing fb with plane index %d\n", ofbi->id);

omapfb_lock(fbdev);

if (display && display->get_update_mode && display->update) {
/* XXX this update should be removed, I think. But it's
* good for debugging */
if (display->get_update_mode(display) ==
OMAP_DSS_UPDATE_MANUAL) {
u16 w, h;

if (display->sync)
display->sync(display);

display->get_resolution(display, &w, &h);
display->update(display, 0, 0, w, h);
}
}

if (display && display->sync)
display->sync(display);

omapfb_unlock(fbdev);
#endif
return 0;
}

Expand Down

0 comments on commit e1d0178

Please sign in to comment.