diff mbox

[4/4] ARM: PXA: PXAFB: don't disable controller on cpufreq transition if overlay is in use

Message ID 1299835250-11095-4-git-send-email-anarsoul@gmail.com (mailing list archive)
State Not Applicable
Headers show

Commit Message

Vasily Khoruzhick March 11, 2011, 9:20 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index a3bdcc1..a2e5b51 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -1648,7 +1648,8 @@  pxafb_freq_transition(struct notifier_block *nb, unsigned long val, void *data)
 
 	switch (val) {
 	case CPUFREQ_PRECHANGE:
-		set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE);
+		if (!fbi->overlay[0].usage && !fbi->overlay[1].usage)
+			set_ctrlr_state(fbi, C_DISABLE_CLKCHANGE);
 		break;
 
 	case CPUFREQ_POSTCHANGE: