diff options
Diffstat (limited to 'drivers/video/omap/omapfb_main.c')
-rw-r--r-- | drivers/video/omap/omapfb_main.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/video/omap/omapfb_main.c b/drivers/video/omap/omapfb_main.c index 440a5dd06654..73924bc9959e 100644 --- a/drivers/video/omap/omapfb_main.c +++ b/drivers/video/omap/omapfb_main.c | |||
@@ -34,7 +34,6 @@ | |||
34 | 34 | ||
35 | #include "omapfb.h" | 35 | #include "omapfb.h" |
36 | #include "lcdc.h" | 36 | #include "lcdc.h" |
37 | #include "dispc.h" | ||
38 | 37 | ||
39 | #define MODULE_NAME "omapfb" | 38 | #define MODULE_NAME "omapfb" |
40 | 39 | ||
@@ -106,11 +105,7 @@ static struct platform_device omapdss_device = { | |||
106 | extern struct lcd_ctrl hwa742_ctrl; | 105 | extern struct lcd_ctrl hwa742_ctrl; |
107 | 106 | ||
108 | static const struct lcd_ctrl *ctrls[] = { | 107 | static const struct lcd_ctrl *ctrls[] = { |
109 | #ifdef CONFIG_ARCH_OMAP1 | ||
110 | &omap1_int_ctrl, | 108 | &omap1_int_ctrl, |
111 | #else | ||
112 | &omap2_int_ctrl, | ||
113 | #endif | ||
114 | 109 | ||
115 | #ifdef CONFIG_FB_OMAP_LCDC_HWA742 | 110 | #ifdef CONFIG_FB_OMAP_LCDC_HWA742 |
116 | &hwa742_ctrl, | 111 | &hwa742_ctrl, |
@@ -118,11 +113,7 @@ static const struct lcd_ctrl *ctrls[] = { | |||
118 | }; | 113 | }; |
119 | 114 | ||
120 | #ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL | 115 | #ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL |
121 | #ifdef CONFIG_ARCH_OMAP1 | ||
122 | extern struct lcd_ctrl_extif omap1_ext_if; | 116 | extern struct lcd_ctrl_extif omap1_ext_if; |
123 | #else | ||
124 | extern struct lcd_ctrl_extif omap2_ext_if; | ||
125 | #endif | ||
126 | #endif | 117 | #endif |
127 | 118 | ||
128 | static void omapfb_rqueue_lock(struct omapfb_device *fbdev) | 119 | static void omapfb_rqueue_lock(struct omapfb_device *fbdev) |
@@ -1717,17 +1708,10 @@ static int omapfb_do_probe(struct platform_device *pdev, | |||
1717 | 1708 | ||
1718 | mutex_init(&fbdev->rqueue_mutex); | 1709 | mutex_init(&fbdev->rqueue_mutex); |
1719 | 1710 | ||
1720 | #ifdef CONFIG_ARCH_OMAP1 | ||
1721 | fbdev->int_ctrl = &omap1_int_ctrl; | 1711 | fbdev->int_ctrl = &omap1_int_ctrl; |
1722 | #ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL | 1712 | #ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL |
1723 | fbdev->ext_if = &omap1_ext_if; | 1713 | fbdev->ext_if = &omap1_ext_if; |
1724 | #endif | 1714 | #endif |
1725 | #else /* OMAP2 */ | ||
1726 | fbdev->int_ctrl = &omap2_int_ctrl; | ||
1727 | #ifdef CONFIG_FB_OMAP_LCDC_EXTERNAL | ||
1728 | fbdev->ext_if = &omap2_ext_if; | ||
1729 | #endif | ||
1730 | #endif | ||
1731 | if (omapfb_find_ctrl(fbdev) < 0) { | 1715 | if (omapfb_find_ctrl(fbdev) < 0) { |
1732 | dev_err(fbdev->dev, | 1716 | dev_err(fbdev->dev, |
1733 | "LCD controller not found, board not supported\n"); | 1717 | "LCD controller not found, board not supported\n"); |