Messages in this thread Patch in this message | ![/](/images/icornerl.gif) | | From | Bas Mevissen <> | Subject | Little patch for 8390 driver | Date | Tue, 3 Dec 1996 12:41:24 +0100 (MET) |
| |
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)
| ![\](/images/icornerr.gif) |