diff options
Diffstat (limited to 'drivers/video/via')
-rw-r--r-- | drivers/video/via/global.c | 4 | ||||
-rw-r--r-- | drivers/video/via/global.h | 2 | ||||
-rw-r--r-- | drivers/video/via/hw.h | 2 | ||||
-rw-r--r-- | drivers/video/via/viafbdev.c | 9 | ||||
-rw-r--r-- | drivers/video/via/viafbdev.h | 2 |
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; | |||
29 | int viafb_refresh1 = 60; | 29 | int viafb_refresh1 = 60; |
30 | int viafb_lcd_dsp_method = LCD_EXPANDSION; | 30 | int viafb_lcd_dsp_method = LCD_EXPANDSION; |
31 | int viafb_lcd_mode = LCD_OPENLDI; | 31 | int viafb_lcd_mode = LCD_OPENLDI; |
32 | int viafb_bpp = 32; | ||
33 | int viafb_bpp1 = 32; | ||
34 | int viafb_CRT_ON = 1; | 32 | int viafb_CRT_ON = 1; |
35 | int viafb_DVI_ON; | 33 | int viafb_DVI_ON; |
36 | int viafb_LCD_ON ; | 34 | int viafb_LCD_ON ; |
@@ -41,8 +39,6 @@ int viafb_hotplug_Xres = 640; | |||
41 | int viafb_hotplug_Yres = 480; | 39 | int viafb_hotplug_Yres = 480; |
42 | int viafb_hotplug_bpp = 32; | 40 | int viafb_hotplug_bpp = 32; |
43 | int viafb_hotplug_refresh = 60; | 41 | int viafb_hotplug_refresh = 60; |
44 | unsigned int viafb_second_offset; | ||
45 | int viafb_second_size; | ||
46 | int viafb_primary_dev = None_Device; | 42 | int viafb_primary_dev = None_Device; |
47 | unsigned int viafb_second_xres = 640; | 43 | unsigned int viafb_second_xres = 640; |
48 | unsigned int viafb_second_yres = 480; | 44 | unsigned 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; | |||
67 | extern int viafb_refresh1; | 67 | extern int viafb_refresh1; |
68 | extern int viafb_lcd_dsp_method; | 68 | extern int viafb_lcd_dsp_method; |
69 | extern int viafb_lcd_mode; | 69 | extern int viafb_lcd_mode; |
70 | extern int viafb_bpp; | ||
71 | extern int viafb_bpp1; | ||
72 | 70 | ||
73 | extern int viafb_CRT_ON; | 71 | extern int viafb_CRT_ON; |
74 | extern int viafb_hotplug_Xres; | 72 | extern 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 | ||
865 | extern unsigned int viafb_second_virtual_xres; | 865 | extern unsigned int viafb_second_virtual_xres; |
866 | extern unsigned int viafb_second_offset; | ||
867 | extern int viafb_second_size; | ||
868 | extern int viafb_SAMM_ON; | 866 | extern int viafb_SAMM_ON; |
869 | extern int viafb_dual_fb; | 867 | extern int viafb_dual_fb; |
870 | extern int viafb_LCD2_ON; | 868 | extern 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 | ||
29 | static struct fb_var_screeninfo default_var; | ||
30 | static char *viafb_name = "Via"; | 29 | static char *viafb_name = "Via"; |
31 | static u32 pseudo_pal[17]; | 30 | static u32 pseudo_pal[17]; |
32 | 31 | ||
33 | /* video mode */ | 32 | /* video mode */ |
34 | static char *viafb_mode; | 33 | static char *viafb_mode; |
35 | static char *viafb_mode1; | 34 | static char *viafb_mode1; |
35 | static int viafb_bpp = 32; | ||
36 | static int viafb_bpp1 = 32; | ||
37 | |||
38 | static unsigned int viafb_second_offset; | ||
39 | static int viafb_second_size; | ||
36 | 40 | ||
37 | static int viafb_accel = 1; | 41 | static 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 | ||
84 | extern unsigned int viafb_second_virtual_yres; | 84 | extern unsigned int viafb_second_virtual_yres; |
85 | extern unsigned int viafb_second_virtual_xres; | 85 | extern unsigned int viafb_second_virtual_xres; |
86 | extern unsigned int viafb_second_offset; | ||
87 | extern int viafb_second_size; | ||
88 | extern int viafb_SAMM_ON; | 86 | extern int viafb_SAMM_ON; |
89 | extern int viafb_dual_fb; | 87 | extern int viafb_dual_fb; |
90 | extern int viafb_LCD2_ON; | 88 | extern int viafb_LCD2_ON; |