Changeset 12185


Ignore:
Timestamp:
2008-08-06T01:20:42+02:00 (10 years ago)
Author:
nbd
Message:

fix qc-usb compile on atheros

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/qc-usb/patches/001-linux_2_6.patch

    r10796 r12185  
    1 diff -ruN qc-usb-0.6.6-orig/qc-driver.c qc-usb-0.6.6/qc-driver.c 
    2 --- qc-usb-0.6.6-orig/qc-driver.c       2006-10-24 04:06:19.000000000 +0200 
    3 +++ qc-usb-0.6.6/qc-driver.c    2008-04-12 18:01:01.000000000 +0200 
     1--- a/qc-driver.c 
     2+++ b/qc-driver.c 
    43@@ -821,7 +821,9 @@ 
    54        if (!cr) goto fail2; 
     
    2221 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) 
    2322        release:        qc_v4l_release, 
     23--- a/qc-memory.c 
     24+++ b/qc-memory.c 
     25@@ -78,15 +78,19 @@ 
     26 #endif 
     27  
     28 #if LINUX_VERSION_CODE>=KERNEL_VERSION(2,5,3) || defined(pte_offset_map) 
     29+#ifndef pte_offset 
     30 #define pte_offset(pmd,adr)    pte_offset_map(pmd,adr) /* Emulation for a kernel using the new rmap-vm */ 
     31+#endif 
     32 #endif                                                 /* Fix by Michele Balistreri <brain87@gmx.net> */ 
     33  
     34+#ifndef SETPAGEFLAG 
     35 #ifndef SetPageReserved 
     36 #define SetPageReserved(p)     mem_map_reserve(p) 
     37 #endif 
     38 #ifndef ClearPageReserved 
     39 #define ClearPageReserved(p)   mem_map_unreserve(p) 
     40 #endif 
     41+#endif /* SETPAGEFLAG */ 
     42 /* }}} */ 
     43  
     44 /* {{{ [fold] kvirt_to_pa(): obtain physical address from virtual address obtained by vmalloc() */ 
Note: See TracChangeset for help on using the changeset viewer.