diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-04-30 05:33:27 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2011-05-12 12:39:51 -0400 |
commit | e1d01789017cf327d63f7748025317763253960b (patch) | |
tree | e7e919c93ee473c646bf55999d3ae7af5d66deb0 /drivers/video/omap2/omapfb | |
parent | c42ced6391ca19e6796b1984bd200f6ff8e5644a (diff) |
OMAP: DSS2: OMAPFB: remove dead code
Remove old unused code lying inside #if 0.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/omap2/omapfb')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index eba90b34579f..9a5b4bc81c80 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -757,35 +757,6 @@ static int omapfb_open(struct fb_info *fbi, int user) | |||
757 | 757 | ||
758 | static int omapfb_release(struct fb_info *fbi, int user) | 758 | static int omapfb_release(struct fb_info *fbi, int user) |
759 | { | 759 | { |
760 | #if 0 | ||
761 | struct omapfb_info *ofbi = FB2OFB(fbi); | ||
762 | struct omapfb2_device *fbdev = ofbi->fbdev; | ||
763 | struct omap_dss_device *display = fb2display(fbi); | ||
764 | |||
765 | DBG("Closing fb with plane index %d\n", ofbi->id); | ||
766 | |||
767 | omapfb_lock(fbdev); | ||
768 | |||
769 | if (display && display->get_update_mode && display->update) { | ||
770 | /* XXX this update should be removed, I think. But it's | ||
771 | * good for debugging */ | ||
772 | if (display->get_update_mode(display) == | ||
773 | OMAP_DSS_UPDATE_MANUAL) { | ||
774 | u16 w, h; | ||
775 | |||
776 | if (display->sync) | ||
777 | display->sync(display); | ||
778 | |||
779 | display->get_resolution(display, &w, &h); | ||
780 | display->update(display, 0, 0, w, h); | ||
781 | } | ||
782 | } | ||
783 | |||
784 | if (display && display->sync) | ||
785 | display->sync(display); | ||
786 | |||
787 | omapfb_unlock(fbdev); | ||
788 | #endif | ||
789 | return 0; | 760 | return 0; |
790 | } | 761 | } |
791 | 762 | ||