]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/at76c503a/at76c503a-modules/ipaq-compat.patch
at76c503a-modules: make it compile cleanly against current hh kernels.
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / at76c503a / at76c503a-modules / ipaq-compat.patch
1 Index: at76c503-fw_skel.c
2 ===================================================================
3 RCS file: /cvsroot/at76c503a/at76c503a/Attic/at76c503-fw_skel.c,v
4 retrieving revision 1.8
5 diff -u -r1.8 at76c503-fw_skel.c
6 --- at76c503a/at76c503-fw_skel.c        8 Mar 2005 00:07:55 -0000       1.8
7 +++ at76c503a/at76c503-fw_skel.c        22 Oct 2006 14:21:02 -0000
8 @@ -26,7 +26,7 @@
9   *
10   */
11  
12 -#ifdef CONFIG_IPAQ_HANDHELD
13 +#ifdef CONFIG_IPAQ_H5400
14  #include <asm/mach-types.h>
15  #include <asm/arch/ipaq.h>
16  #include <asm/arch-pxa/h5400-asic.h>
17 @@ -182,7 +182,7 @@
18  
19         info(DRIVER_DESC " " DRIVER_VERSION " loading");
20  
21 -#ifdef CONFIG_IPAQ_HANDHELD
22 +#ifdef CONFIG_IPAQ_H5400
23         if (machine_is_h5400()) {
24                 /* turn WLAN power on */
25                 /* both needed? */
26 @@ -212,7 +212,7 @@
27                 release_firmware(fw);
28  #endif
29  
30 -#ifdef CONFIG_IPAQ_HANDHELD
31 +#ifdef CONFIG_IPAQ_H5400
32         if (machine_is_h5400()) {
33                 /* turn WLAN power off */
34                 SET_H5400_ASIC_GPIO (GPB, RF_POWER_ON, 0);
35 Index: at76c503.h
36 ===================================================================
37 RCS file: /cvsroot/at76c503a/at76c503a/at76c503.h,v
38 retrieving revision 1.33.2.1
39 diff -u -r1.33.2.1 at76c503.h
40 --- at76c503a/at76c503.h        17 Jul 2006 21:46:16 -0000      1.33.2.1
41 +++ at76c503a/at76c503.h        22 Oct 2006 14:21:03 -0000
42 @@ -51,7 +51,7 @@
43  #define DRIVER_VERSION "v0.12.0" VERSION_APPEND
44  
45  /* Workqueue / task queue backwards compatibility stuff */
46 -#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,41)
47 +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,5,41) || defined(CONFIG_IPAQ_HANDHELD)
48  #include <linux/workqueue.h>
49  #else
50  #include <linux/tqueue.h>