summaryrefslogtreecommitdiff
path: root/packages/atmelwlandriver/atmelwlandriver-3.4.1.0/fix-kernel-version-test-for-hh.patch
blob: 96e2cd947f33d569a7fa2455355aa084ee3ac333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Nurd atmelwlandriver-3.4.1.0/src/usb/vnetusba.c atmelwlandriver-3.4.1.0-hh/src/usb/vnetusba.c
--- atmelwlandriver-3.4.1.0/src/usb/vnetusba.c	2005-12-02 10:25:21.946561154 -0800
+++ atmelwlandriver-3.4.1.0-hh/src/usb/vnetusba.c	2005-12-19 11:34:38.070346125 -0800
@@ -72,7 +72,7 @@
 #endif
 
 struct usb_driver vnet_driver = {
-#if LINUX_VERSION_CODE < 0x020415
+#if (LINUX_VERSION_CODE < 0x020415) && !defined(CONFIG_IPAQ_HANDHELD)
 owner : THIS_MODULE,
 #endif
 #if defined(RFMD)
@@ -2174,7 +2174,7 @@
 		return NULL;
 	}
   */
-#if (LINUX_VERSION_CODE < 0x020413)
+#if (LINUX_VERSION_CODE < 0x020413) && !defined(CONFIG_IPAQ_HANDHELD)
 	if (!register_netdev(Adapter->net)) {
 		err("register_netdev failed");
 #else