lkml.org 
[lkml]   [1996]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectLittle patch for 8390 driver
Date

Hi Alan, all,


Last week I mailed a remark to the list that the mod-in-use count for the
8390-chip module keeps 0. I use a Realtek NE2000 PCI card, which uses the
ne.o driver, which, in turn uses the 8390.o driver.

So the mod-in-use count should be 1. I found out why: namely, the macro that
updates the count is missing. I fixed it (it's simple) and here it is:

--- linux/drivers/net/8390.c Sat May 18 10:15:09 1996
+++ 8390.c Mon Sep 2 23:07:44 1996
@@ -812,12 +812,14 @@

int init_module(void)
{
+ MOD_INC_USE_COUNT;
return 0;
}

void
cleanup_module(void)
{
+ MOD_DEC_USE_COUNT;
}
#endif /* MODULE */

That's all.

Bas.


--
E-mail: sgm@stack.nl, S.G.A.H.Mevissen@stud.tue.nl
PGP: Finger sgm@toad.stack.nl for PGP public key, KeyID 3B896721
WWW: www.stack.nl/~sgm (Also PGP public key)

\
 
 \ /
  Last update: 2005-03-22 13:38    [W:0.042 / U:0.108 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site