Re: Little bugfix

Matthias Urlichs (smurf@smurf.noris.de)
Sat, 15 Jun 1996 19:13:40 +0100


Could somebody please tell me why this patch is needed? After all, 8390=
.o
cannot be unloaded anyway because the "real" driver (wd.o, ne.o...) is
still using the 8390.o module, and ne.o already has MOD_INC/DEC_USE_COU=
NT
for itself.=20

> --- drivers/net/8390.c.orig Thu Jun 13 20:51:54 1996
> +++ drivers/net/8390.c Thu Jun 13 20:51:45 1996
> @@ -117,6 +117,8 @@
> return -ENXIO;
> }
> =20
> + MOD_INC_USE_COUNT;
> + =20
> irq2dev_map[dev->irq] =3D dev;
> NS8390_init(dev, 1);
> dev->start =3D 1;
> @@ -127,6 +129,8 @@
> /* Opposite of above. Only used when "ifconfig <devname> down" is do=
ne. */
> int ei_close(struct device *dev)
> {
> + MOD_DEC_USE_COUNT;
> + =20
> NS8390_init(dev, 0);
> dev->start =3D 0;
> return 0;
>=20

--=20
The world is an 8000 mile high spherical pile of dirt.
--=20
Matthias Urlichs \ noris network GmbH / Xlink-POP N=FCrnberg=
=20
Schleiermacherstra=DFe 12 \ Linux+Internet / EMail: urlichs@nor=
is.de
90491 N=FCrnberg (Germany) \ Consulting+Programming+Networking+etc=
'ing
PGP: 1024/4F578875 1B 89 E2 1C 43 EA 80 44 15 D2 29 CF C6 C7 E0 D=
E
Click <A HREF=3D"http://info.noris.de/~smurf/finger">here</A>. =
42