aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/via
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/via')
-rw-r--r--drivers/video/via/global.c4
-rw-r--r--drivers/video/via/global.h2
-rw-r--r--drivers/video/via/hw.h2
-rw-r--r--drivers/video/via/viafbdev.c9
-rw-r--r--drivers/video/via/viafbdev.h2
5 files changed, 7 insertions, 12 deletions
diff --git a/drivers/video/via/global.c b/drivers/video/via/global.c
index 7fbc618526f4..1ee511b73307 100644
--- a/drivers/video/via/global.c
+++ b/drivers/video/via/global.c
@@ -29,8 +29,6 @@ int viafb_refresh = 60;
29int viafb_refresh1 = 60; 29int viafb_refresh1 = 60;
30int viafb_lcd_dsp_method = LCD_EXPANDSION; 30int viafb_lcd_dsp_method = LCD_EXPANDSION;
31int viafb_lcd_mode = LCD_OPENLDI; 31int viafb_lcd_mode = LCD_OPENLDI;
32int viafb_bpp = 32;
33int viafb_bpp1 = 32;
34int viafb_CRT_ON = 1; 32int viafb_CRT_ON = 1;
35int viafb_DVI_ON; 33int viafb_DVI_ON;
36int viafb_LCD_ON ; 34int viafb_LCD_ON ;
@@ -41,8 +39,6 @@ int viafb_hotplug_Xres = 640;
41int viafb_hotplug_Yres = 480; 39int viafb_hotplug_Yres = 480;
42int viafb_hotplug_bpp = 32; 40int viafb_hotplug_bpp = 32;
43int viafb_hotplug_refresh = 60; 41int viafb_hotplug_refresh = 60;
44unsigned int viafb_second_offset;
45int viafb_second_size;
46int viafb_primary_dev = None_Device; 42int viafb_primary_dev = None_Device;
47unsigned int viafb_second_xres = 640; 43unsigned int viafb_second_xres = 640;
48unsigned int viafb_second_yres = 480; 44unsigned int viafb_second_yres = 480;
diff --git a/drivers/video/via/global.h b/drivers/video/via/global.h
index 865b050683d1..8d95d5fd1388 100644
--- a/drivers/video/via/global.h
+++ b/drivers/video/via/global.h
@@ -67,8 +67,6 @@ extern int viafb_refresh;
67extern int viafb_refresh1; 67extern int viafb_refresh1;
68extern int viafb_lcd_dsp_method; 68extern int viafb_lcd_dsp_method;
69extern int viafb_lcd_mode; 69extern int viafb_lcd_mode;
70extern int viafb_bpp;
71extern int viafb_bpp1;
72 70
73extern int viafb_CRT_ON; 71extern int viafb_CRT_ON;
74extern int viafb_hotplug_Xres; 72extern int viafb_hotplug_Xres;
diff --git a/drivers/video/via/hw.h b/drivers/video/via/hw.h
index dd54d3e56159..691fbd2d8067 100644
--- a/drivers/video/via/hw.h
+++ b/drivers/video/via/hw.h
@@ -863,8 +863,6 @@ struct pci_device_id_info {
863}; 863};
864 864
865extern unsigned int viafb_second_virtual_xres; 865extern unsigned int viafb_second_virtual_xres;
866extern unsigned int viafb_second_offset;
867extern int viafb_second_size;
868extern int viafb_SAMM_ON; 866extern int viafb_SAMM_ON;
869extern int viafb_dual_fb; 867extern int viafb_dual_fb;
870extern int viafb_LCD2_ON; 868extern int viafb_LCD2_ON;
diff --git a/drivers/video/via/viafbdev.c b/drivers/video/via/viafbdev.c
index 902f8a1ac6b1..bb0f616b7d44 100644
--- a/drivers/video/via/viafbdev.c
+++ b/drivers/video/via/viafbdev.c
@@ -26,13 +26,17 @@
26 26
27#include "global.h" 27#include "global.h"
28 28
29static struct fb_var_screeninfo default_var;
30static char *viafb_name = "Via"; 29static char *viafb_name = "Via";
31static u32 pseudo_pal[17]; 30static u32 pseudo_pal[17];
32 31
33/* video mode */ 32/* video mode */
34static char *viafb_mode; 33static char *viafb_mode;
35static char *viafb_mode1; 34static char *viafb_mode1;
35static int viafb_bpp = 32;
36static int viafb_bpp1 = 32;
37
38static unsigned int viafb_second_offset;
39static int viafb_second_size;
36 40
37static int viafb_accel = 1; 41static int viafb_accel = 1;
38 42
@@ -1849,10 +1853,11 @@ static int __devinit via_pci_probe(struct pci_dev *pdev,
1849{ 1853{
1850 u32 default_xres, default_yres; 1854 u32 default_xres, default_yres;
1851 struct VideoModeTable *vmode_entry; 1855 struct VideoModeTable *vmode_entry;
1856 struct fb_var_screeninfo default_var;
1852 u32 viafb_par_length; 1857 u32 viafb_par_length;
1853 1858
1854 DEBUG_MSG(KERN_INFO "VIAFB PCI Probe!!\n"); 1859 DEBUG_MSG(KERN_INFO "VIAFB PCI Probe!!\n");
1855 1860 memset(&default_var, 0, sizeof(default_var));
1856 viafb_par_length = ALIGN(sizeof(struct viafb_par), BITS_PER_LONG/8); 1861 viafb_par_length = ALIGN(sizeof(struct viafb_par), BITS_PER_LONG/8);
1857 1862
1858 /* Allocate fb_info and ***_par here, also including some other needed 1863 /* Allocate fb_info and ***_par here, also including some other needed
diff --git a/drivers/video/via/viafbdev.h b/drivers/video/via/viafbdev.h
index ecdaed841177..61b5953cd159 100644
--- a/drivers/video/via/viafbdev.h
+++ b/drivers/video/via/viafbdev.h
@@ -83,8 +83,6 @@ struct viafb_par {
83 83
84extern unsigned int viafb_second_virtual_yres; 84extern unsigned int viafb_second_virtual_yres;
85extern unsigned int viafb_second_virtual_xres; 85extern unsigned int viafb_second_virtual_xres;
86extern unsigned int viafb_second_offset;
87extern int viafb_second_size;
88extern int viafb_SAMM_ON; 86extern int viafb_SAMM_ON;
89extern int viafb_dual_fb; 87extern int viafb_dual_fb;
90extern int viafb_LCD2_ON; 88extern int viafb_LCD2_ON;