summaryrefslogtreecommitdiff
path: root/packages/ixp4xx/ixp4xx-csr-2.1.1/module-use-count.patch
blob: 0fc2c5270e4194fbe57a100348d88709bdfc33a9 (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
 src/oslinux/IxLinuxInit.c |    3 ---
 1 files changed, 3 deletions(-)

Index: ixp400_xscale_sw/src/oslinux/IxLinuxInit.c
===================================================================
--- ixp400_xscale_sw.orig/src/oslinux/IxLinuxInit.c
+++ ixp400_xscale_sw/src/oslinux/IxLinuxInit.c
@@ -164,7 +164,6 @@
 	return -EEXIST;
     }
 
-    MOD_INC_USE_COUNT;   /* Increment use count to prevent premature rmmod-ing */
     ixNpeDlSegmentedListHead = NULL;  /* Reset linked list which keeps track of Microcode fragments */
     ixNpeDlSegmentedListTail = NULL;
     ixNpeDlTotalBytesReadIn = 0;
@@ -229,8 +228,6 @@
 	kfree (temp);
     }
 
-    MOD_DEC_USE_COUNT;
-
     return 0;
 }