diff mbox

[RFC,RFT] OMAPFB: LCDC: change update_mode to DISABLED when going suspend

Message ID 201005170320.29580.jkrzyszt@tis.icnet.pl (mailing list archive)
State New, archived
Delegated to: Tomi Valkeinen
Headers show

Commit Message

Janusz Krzysztofik May 17, 2010, 1:20 a.m. UTC
None
diff mbox

Patch

--- git/drivers/video/omap/lcdc.c.orig	2010-05-16 21:39:20.000000000 +0200
+++ git/drivers/video/omap/lcdc.c	2010-05-17 00:00:43.000000000 +0200
@@ -572,22 +572,12 @@  static enum omapfb_update_mode omap_lcdc
 /* PM code called only in internal controller mode */
 static void omap_lcdc_suspend(void)
 {
-	if (lcdc.update_mode == OMAPFB_AUTO_UPDATE) {
-		disable_controller();
-		omap_stop_lcd_dma();
-	}
+	omap_lcdc_set_update_mode(OMAPFB_UPDATE_DISABLED);
 }
 
 static void omap_lcdc_resume(void)
 {
-	if (lcdc.update_mode == OMAPFB_AUTO_UPDATE) {
-		setup_regs();
-		load_palette();
-		setup_lcd_dma();
-		set_load_mode(OMAP_LCDC_LOAD_FRAME);
-		enable_irqs(OMAP_LCDC_IRQ_DONE);
-		enable_controller();
-	}
+	omap_lcdc_set_update_mode(OMAPFB_AUTO_UPDATE);
 }
 
 static void omap_lcdc_get_caps(int plane, struct omapfb_caps *caps)