aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/pxafb.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 0764759a2eed..e2f643ef9516 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -952,8 +952,6 @@ static void __devinit pxafb_overlay_init(struct pxafb_info *fbi)
952 /* mask all IU/BS/EOF/SOF interrupts */ 952 /* mask all IU/BS/EOF/SOF interrupts */
953 lcd_writel(fbi, LCCR5, ~0); 953 lcd_writel(fbi, LCCR5, ~0);
954 954
955 /* place overlay(s) on top of base */
956 fbi->lccr0 |= LCCR0_OUC;
957 pr_info("PXA Overlay driver loaded successfully!\n"); 955 pr_info("PXA Overlay driver loaded successfully!\n");
958} 956}
959 957
@@ -1843,6 +1841,12 @@ static struct pxafb_info * __devinit pxafb_init_fbinfo(struct device *dev)
1843 1841
1844 pxafb_decode_mach_info(fbi, inf); 1842 pxafb_decode_mach_info(fbi, inf);
1845 1843
1844#ifdef CONFIG_FB_PXA_OVERLAY
1845 /* place overlay(s) on top of base */
1846 if (pxafb_overlay_supported())
1847 fbi->lccr0 |= LCCR0_OUC;
1848#endif
1849
1846 init_waitqueue_head(&fbi->ctrlr_wait); 1850 init_waitqueue_head(&fbi->ctrlr_wait);
1847 INIT_WORK(&fbi->task, pxafb_task); 1851 INIT_WORK(&fbi->task, pxafb_task);
1848 mutex_init(&fbi->ctrlr_lock); 1852 mutex_init(&fbi->ctrlr_lock);