aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/da8xx-fb.c
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2013-08-05 18:02:23 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2013-08-09 07:02:41 -0400
commitbe0f6dbca39036213893d8b83a7779d96844c144 (patch)
treed34e2fa0ec44a74e4bcede3f62487daa7bdd774d /drivers/video/da8xx-fb.c
parentb866458b12f95ffff908b4bcc2be338705facc1d (diff)
video: da8xx-fb: remove unneeded "var" initialization
modedb helper now updates "var" information based on the detected panel, remove the unnecessary initialization. Signed-off-by: Afzal Mohammed <afzal@ti.com> Signed-off-by: Darren Etheridge <detheridge@ti.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'drivers/video/da8xx-fb.c')
-rw-r--r--drivers/video/da8xx-fb.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c
index a1f65444b580..18834faabc33 100644
--- a/drivers/video/da8xx-fb.c
+++ b/drivers/video/da8xx-fb.c
@@ -131,10 +131,6 @@
131 131
132#define WSI_TIMEOUT 50 132#define WSI_TIMEOUT 50
133#define PALETTE_SIZE 256 133#define PALETTE_SIZE 256
134#define LEFT_MARGIN 64
135#define RIGHT_MARGIN 64
136#define UPPER_MARGIN 32
137#define LOWER_MARGIN 32
138 134
139static void __iomem *da8xx_fb_reg_base; 135static void __iomem *da8xx_fb_reg_base;
140static struct resource *lcdc_regs; 136static struct resource *lcdc_regs;
@@ -184,23 +180,7 @@ struct da8xx_fb_par {
184 u32 pseudo_palette[16]; 180 u32 pseudo_palette[16];
185}; 181};
186 182
187/* Variable Screen Information */ 183static struct fb_var_screeninfo da8xx_fb_var;
188static struct fb_var_screeninfo da8xx_fb_var = {
189 .xoffset = 0,
190 .yoffset = 0,
191 .transp = {0, 0, 0},
192 .nonstd = 0,
193 .activate = 0,
194 .height = -1,
195 .width = -1,
196 .accel_flags = 0,
197 .left_margin = LEFT_MARGIN,
198 .right_margin = RIGHT_MARGIN,
199 .upper_margin = UPPER_MARGIN,
200 .lower_margin = LOWER_MARGIN,
201 .sync = 0,
202 .vmode = FB_VMODE_NONINTERLACED
203};
204 184
205static struct fb_fix_screeninfo da8xx_fb_fix = { 185static struct fb_fix_screeninfo da8xx_fb_fix = {
206 .id = "DA8xx FB Drv", 186 .id = "DA8xx FB Drv",