Date: Thu, 18 Mar 2004 13:10:11 -0800 (PST) From: Guido van Rooij <guido@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/ppbus if_plip.c lpbb.c lpt.c pcfclock.c ppi.c pps.c vpo.c Message-ID: <200403182110.i2ILABOO010165@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
guido 2004/03/18 13:10:11 PST FreeBSD src repository Modified files: sys/dev/ppbus if_plip.c lpbb.c lpt.c pcfclock.c ppi.c pps.c vpo.c Log: Prevent the strange situation that after each load/unload of a ppbus device, the device is probed multiple times (so each device is detected N times after unloading/loading the module N-1 times). The real fix is (quote Doug and Warner): > : In an ideal world, there should be some kind of BUS_UNIDENTIFY method > : which a driver could use to delete the devices it created in > : BUS_IDENTIFY. > > Or the bus would have a driver deleted routine that got called and it > would remove all instances of the devclass attached to it. Reviewed by: Doug Rabson & Warner Losh Revision Changes Path 1.33 +4 -1 src/sys/dev/ppbus/if_plip.c 1.18 +5 -1 src/sys/dev/ppbus/lpbb.c 1.32 +5 -1 src/sys/dev/ppbus/lpt.c 1.16 +5 -1 src/sys/dev/ppbus/pcfclock.c 1.36 +5 -1 src/sys/dev/ppbus/ppi.c 1.41 +5 -1 src/sys/dev/ppbus/pps.c 1.32 +5 -1 src/sys/dev/ppbus/vpo.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200403182110.i2ILABOO010165>