|
27 | 27 | #include <linux/errno.h>
|
28 | 28 | #include <linux/string.h>
|
29 | 29 | #include <linux/mm.h>
|
30 |
| -#include <linux/screen_info.h> |
31 | 30 | #include <linux/slab.h>
|
32 | 31 | #include <linux/fb.h>
|
33 | 32 | #include <linux/selection.h>
|
@@ -257,36 +256,6 @@ static void sisfb_search_mode(char *name, bool quiet)
|
257 | 256 | printk(KERN_ERR "sisfb: Invalid mode '%s'\n", nameptr);
|
258 | 257 | }
|
259 | 258 |
|
260 |
| -#ifndef MODULE |
261 |
| -static void sisfb_get_vga_mode_from_kernel(void) |
262 |
| -{ |
263 |
| -#ifdef CONFIG_X86 |
264 |
| - char mymode[32]; |
265 |
| - int mydepth = screen_info.lfb_depth; |
266 |
| - |
267 |
| - if(screen_info.orig_video_isVGA != VIDEO_TYPE_VLFB) return; |
268 |
| - |
269 |
| - if( (screen_info.lfb_width >= 320) && (screen_info.lfb_width <= 2048) && |
270 |
| - (screen_info.lfb_height >= 200) && (screen_info.lfb_height <= 1536) && |
271 |
| - (mydepth >= 8) && (mydepth <= 32) ) { |
272 |
| - |
273 |
| - if(mydepth == 24) mydepth = 32; |
274 |
| - |
275 |
| - sprintf(mymode, "%ux%ux%u", screen_info.lfb_width, |
276 |
| - screen_info.lfb_height, |
277 |
| - mydepth); |
278 |
| - |
279 |
| - printk(KERN_DEBUG |
280 |
| - "sisfb: Using vga mode %s pre-set by kernel as default\n", |
281 |
| - mymode); |
282 |
| - |
283 |
| - sisfb_search_mode(mymode, true); |
284 |
| - } |
285 |
| -#endif |
286 |
| - return; |
287 |
| -} |
288 |
| -#endif |
289 |
| - |
290 | 259 | static void __init
|
291 | 260 | sisfb_search_crt2type(const char *name)
|
292 | 261 | {
|
@@ -5901,12 +5870,6 @@ static int sisfb_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
|
5901 | 5870 | ivideo->subsysvendor = pdev->subsystem_vendor;
|
5902 | 5871 | ivideo->subsysdevice = pdev->subsystem_device;
|
5903 | 5872 |
|
5904 |
| -#ifndef MODULE |
5905 |
| - if(sisfb_mode_idx == -1) { |
5906 |
| - sisfb_get_vga_mode_from_kernel(); |
5907 |
| - } |
5908 |
| -#endif |
5909 |
| - |
5910 | 5873 | ivideo->chip = chipinfo->chip;
|
5911 | 5874 | ivideo->chip_real_id = chipinfo->chip;
|
5912 | 5875 | ivideo->sisvga_engine = chipinfo->vgaengine;
|
|
0 commit comments