summarylogtreecommitdiffstats
path: root/fix_310_proc2.patch
blob: 40cb8e33e8752a8b415379ec89ef093d3874059d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
--- a/os_dep/linux/os_intfs.c	2013-09-11 05:56:55.000000000 +0200
+++ b/os_dep/linux/os_intfs.c	2013-11-12 00:30:41.158248277 +0100
@@ -277,6 +277,18 @@
 
 #define RTW_PROC_NAME DRV_NAME
 
+#ifndef create_proc_entry
+/* dummy routines */
+void rtw_proc_remove_one(struct net_device *dev)
+{
+}
+
+void rtw_proc_init_one(struct net_device *dev)
+{
+}
+
+#else        /* create_proc_entry not defined */
+
 void rtw_proc_init_one(struct net_device *dev)
 {
 	struct proc_dir_entry *dir_dev = NULL;
@@ -751,6 +763,7 @@
 		}
 	}
 }
+#endif  /* create_proc_entry not defined */
 #endif
 
 uint loadparam( _adapter *padapter,  _nic_hdl	pnetdev);