aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/omap
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2012-01-24 04:00:54 -0500
committerTomi Valkeinen <tomi.valkeinen@ti.com>2012-02-23 02:39:35 -0500
commitae7e1f2d0b9cf37d4ca4d55b264110e4c880f7ed (patch)
tree648e81d8e824313c628d4d66d7960462acd9e834 /drivers/video/omap
parent5f1cc13fbf4cd0f798a08af2e0c04ae80ceac5e3 (diff)
OMAPFB: remove remaining OMAP arch checks
Now that the old omapfb driver is only omap1 display driver, there's no need to check if the arch is omap1. This patch removes the few remaining checks for the arch. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'drivers/video/omap')
-rw-r--r--drivers/video/omap/Makefile6
-rw-r--r--drivers/video/omap/omapfb.h4
-rw-r--r--drivers/video/omap/omapfb_main.c3
3 files changed, 3 insertions, 10 deletions
diff --git a/drivers/video/omap/Makefile b/drivers/video/omap/Makefile
index 79653750448a..1927faffb5bc 100644
--- a/drivers/video/omap/Makefile
+++ b/drivers/video/omap/Makefile
@@ -4,11 +4,9 @@
4 4
5obj-$(CONFIG_FB_OMAP) += omapfb.o 5obj-$(CONFIG_FB_OMAP) += omapfb.o
6 6
7objs-yy := omapfb_main.o 7objs-yy := omapfb_main.o lcdc.o
8 8
9objs-y$(CONFIG_ARCH_OMAP1) += lcdc.o 9objs-y$(CONFIG_FB_OMAP_LCDC_EXTERNAL) += sossi.o
10
11objs-$(CONFIG_ARCH_OMAP1)$(CONFIG_FB_OMAP_LCDC_EXTERNAL) += sossi.o
12 10
13objs-y$(CONFIG_FB_OMAP_LCDC_HWA742) += hwa742.o 11objs-y$(CONFIG_FB_OMAP_LCDC_HWA742) += hwa742.o
14 12
diff --git a/drivers/video/omap/omapfb.h b/drivers/video/omap/omapfb.h
index 07fe49878892..2921d20e4fba 100644
--- a/drivers/video/omap/omapfb.h
+++ b/drivers/video/omap/omapfb.h
@@ -47,11 +47,7 @@
47 47
48struct omapfb_device; 48struct omapfb_device;
49 49
50#ifdef CONFIG_ARCH_OMAP1
51#define OMAPFB_PLANE_NUM 1 50#define OMAPFB_PLANE_NUM 1
52#else
53#define OMAPFB_PLANE_NUM 3
54#endif
55 51
56struct omapfb_mem_region { 52struct omapfb_mem_region {
57 u32 paddr; 53 u32 paddr;
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c
index 3d2e14798210..f54b463709e9 100644
--- a/drivers/video/omap/omapfb_main.c
+++ b/drivers/video/omap/omapfb_main.c
@@ -1741,8 +1741,7 @@ static int omapfb_do_probe(struct platform_device *pdev,
1741 1741
1742#ifdef CONFIG_FB_OMAP_DMA_TUNE 1742#ifdef CONFIG_FB_OMAP_DMA_TUNE
1743 /* Set DMA priority for EMIFF access to highest */ 1743 /* Set DMA priority for EMIFF access to highest */
1744 if (cpu_class_is_omap1()) 1744 omap_set_dma_priority(0, OMAP_DMA_PORT_EMIFF, 15);
1745 omap_set_dma_priority(0, OMAP_DMA_PORT_EMIFF, 15);
1746#endif 1745#endif
1747 1746
1748 r = ctrl_change_mode(fbdev->fb_info[0]); 1747 r = ctrl_change_mode(fbdev->fb_info[0]);