new sisfb driver 2.5.6 compile fix

From: bert hubert (ahu@ds9a.nl)
Date: Fri Mar 08 2002 - 06:06:53 EST


Thomas,

This patch makes your most recent work (as found on
http://www.webit.at/~twinny/linuxsis630.shtml) compile & work on 2.5.6.

Regards,

bert

diff -urBb sis-orig/sis_main.c sis/sis_main.c
--- sis-orig/sis_main.c Wed Mar 6 19:47:21 2002
+++ sis/sis_main.c Fri Mar 8 11:09:58 2002
@@ -2286,7 +2286,7 @@
         if (boot_cpu_data.x86 > 3)
                 pgprot_val(vma->vm_page_prot) |= _PAGE_PCD;
 #endif
- if (io_remap_page_range(vma->vm_start, off, vma->vm_end - vma->vm_start,
+ if (io_remap_page_range(vma, vma->vm_start, off, vma->vm_end - vma->vm_start,
                                 vma->vm_page_prot))
                 return -EAGAIN;
         return 0;
@@ -2994,7 +2994,7 @@
                 sisfb_crtc_to_var(&default_var);
 
                 fb_info.changevar = NULL;
- fb_info.node = -1;
+ fb_info.node = NODEV;
                 fb_info.fbops = &sisfb_ops;
                 fb_info.disp = &disp;
                 fb_info.switch_con = &sisfb_switch;

-- 
http://www.PowerDNS.com          Versatile DNS Software & Services
http://www.tk                              the dot in .tk
http://lartc.org           Linux Advanced Routing & Traffic Control HOWTO
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 15 2002 - 22:00:08 EST