diff options
-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 | ||