Messages in this thread Patch in this message | | | Date | Sun, 23 Nov 1997 11:35:01 +0000 (GMT) | From | Tim Waugh <> | Subject | Re: parport_probe isn't autocleaned by kerneld. |
| |
On Tue, 18 Nov 1997, Niels Kristian Bech Jensen wrote:
> The parport_probe module isn't autocleaned by kerneld on my system. I've > seen this problem on kernels 2.1.62-2.1.65 (2.1.62 was the first 2.1.xx > kernel I used.)
The patch at the end fixes that.
> I've followed the tips given in > linux/Documentation/parport.txt, but that doesn't work (beware that > pre-remove and post-remove doesn't work with kerneld.)
Really? Oh, well, it no longer needs to anyway, as it's request_module'd now.
Tim. */
--- linux/Documentation/parport.txt~ Sun Nov 23 11:32:49 1997 +++ linux/Documentation/parport.txt Sun Nov 23 11:33:16 1997 @@ -53,12 +53,6 @@ parport0: Printer, BJC-210 (Canon) -Additionally, if you use kerneld, you can add to /etc/conf.modules the -following lines, to have the probe happen automatically: - - post-install parport modprobe parport_probe - pre-remove parport modprobe -r parport_probe - Parport, but not as modules =========================== --- /var/tmp/linux-2.1.65/drivers/pnp/parport_probe.c Sat Sep 20 16:37:22 1997 +++ linux/drivers/pnp/parport_probe.c Sun Nov 23 11:25:07 1997 @@ -267,8 +267,10 @@ int init_module(void) { struct parport *p; + MOD_INC_USE_COUNT; for (p = parport_enumerate(); p; p = p->next) parport_probe_one(p); + MOD_DEC_USE_COUNT; return 0; }
| |