aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-02-08 13:24:46 -0500
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>2019-02-08 13:24:46 -0500
commit1ea673ade7448db0f6f2fe423e72b84e33f653fe (patch)
tree583943e7e4dac9097a15f4a29d7492c02f424fe6 /drivers/video/fbdev
parent89ef5c6a7584f9d7f8f11def67d2e8a2312ec9fe (diff)
video: fbdev: geode: remove ifdef OLPC noise
<asm/olpc.h> provides olpc_has_dcon() stub for CONFIG_OLPC=n, compiler should just optimize the unneeded bits away. Signed-off-by: Lubomir Rintel <lkundrak@v3.sk> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/geode/gxfb_core.c13
-rw-r--r--drivers/video/fbdev/geode/lxfb_core.c13
2 files changed, 4 insertions, 22 deletions
diff --git a/drivers/video/fbdev/geode/gxfb_core.c b/drivers/video/fbdev/geode/gxfb_core.c
index f4f76373b2a8..b1906cf5a8f0 100644
--- a/drivers/video/fbdev/geode/gxfb_core.c
+++ b/drivers/video/fbdev/geode/gxfb_core.c
@@ -33,6 +33,8 @@
33#include <linux/pci.h> 33#include <linux/pci.h>
34#include <linux/cs5535.h> 34#include <linux/cs5535.h>
35 35
36#include <asm/olpc.h>
37
36#include "gxfb.h" 38#include "gxfb.h"
37 39
38static char *mode_option; 40static char *mode_option;
@@ -107,9 +109,6 @@ static struct fb_videomode gx_modedb[] = {
107 FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA }, 109 FB_VMODE_NONINTERLACED, FB_MODE_IS_VESA },
108}; 110};
109 111
110#ifdef CONFIG_OLPC
111#include <asm/olpc.h>
112
113static struct fb_videomode gx_dcon_modedb[] = { 112static struct fb_videomode gx_dcon_modedb[] = {
114 /* The only mode the DCON has is 1200x900 */ 113 /* The only mode the DCON has is 1200x900 */
115 { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3, 114 { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3,
@@ -128,14 +127,6 @@ static void get_modedb(struct fb_videomode **modedb, unsigned int *size)
128 } 127 }
129} 128}
130 129
131#else
132static void get_modedb(struct fb_videomode **modedb, unsigned int *size)
133{
134 *modedb = (struct fb_videomode *) gx_modedb;
135 *size = ARRAY_SIZE(gx_modedb);
136}
137#endif
138
139static int gxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) 130static int gxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
140{ 131{
141 if (var->xres > 1600 || var->yres > 1200) 132 if (var->xres > 1600 || var->yres > 1200)
diff --git a/drivers/video/fbdev/geode/lxfb_core.c b/drivers/video/fbdev/geode/lxfb_core.c
index 138da6cb6cbc..17ab905811b1 100644
--- a/drivers/video/fbdev/geode/lxfb_core.c
+++ b/drivers/video/fbdev/geode/lxfb_core.c
@@ -23,6 +23,8 @@
23#include <linux/pci.h> 23#include <linux/pci.h>
24#include <linux/uaccess.h> 24#include <linux/uaccess.h>
25 25
26#include <asm/olpc.h>
27
26#include "lxfb.h" 28#include "lxfb.h"
27 29
28static char *mode_option; 30static char *mode_option;
@@ -216,9 +218,6 @@ static struct fb_videomode geode_modedb[] = {
216 0, FB_VMODE_NONINTERLACED, 0 }, 218 0, FB_VMODE_NONINTERLACED, 0 },
217}; 219};
218 220
219#ifdef CONFIG_OLPC
220#include <asm/olpc.h>
221
222static struct fb_videomode olpc_dcon_modedb[] = { 221static struct fb_videomode olpc_dcon_modedb[] = {
223 /* The only mode the DCON has is 1200x900 */ 222 /* The only mode the DCON has is 1200x900 */
224 { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3, 223 { NULL, 50, 1200, 900, 17460, 24, 8, 4, 5, 8, 3,
@@ -237,14 +236,6 @@ static void get_modedb(struct fb_videomode **modedb, unsigned int *size)
237 } 236 }
238} 237}
239 238
240#else
241static void get_modedb(struct fb_videomode **modedb, unsigned int *size)
242{
243 *modedb = (struct fb_videomode *) geode_modedb;
244 *size = ARRAY_SIZE(geode_modedb);
245}
246#endif
247
248static int lxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info) 239static int lxfb_check_var(struct fb_var_screeninfo *var, struct fb_info *info)
249{ 240{
250 if (var->xres > 1920 || var->yres > 1440) 241 if (var->xres > 1920 || var->yres > 1440)