X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fvideo%2Fsis%2Fsis_main.c;fp=drivers%2Fvideo%2Fsis%2Fsis_main.c;h=8adf5bf91eee075716b12d95d5eb26ef6c0312bc;hb=64ba3f394c830ec48a1c31b53dcae312c56f1604;hp=895ebda7d9e3547443785aa6e465589acd2457cf;hpb=be1e6109ac94a859551f8e1774eb9a8469fe055c;p=linux-2.6.git diff --git a/drivers/video/sis/sis_main.c b/drivers/video/sis/sis_main.c index 895ebda7d..8adf5bf91 100644 --- a/drivers/video/sis/sis_main.c +++ b/drivers/video/sis/sis_main.c @@ -33,6 +33,7 @@ * */ +#include #include #include #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0) @@ -44,13 +45,7 @@ #include #include #include - -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,17) #include -#else -#include -#endif - #include #include #include @@ -280,7 +275,7 @@ sisfb_search_mode(char *name, BOOLEAN quiet) static void __devinit sisfb_get_vga_mode_from_kernel(void) { -#ifdef CONFIG_X86 +#if (defined(__i386__) || defined(__x86_64__)) && defined(CONFIG_VIDEO_SELECT) char mymode[32]; int mydepth = screen_info.lfb_depth;