Re: problem with unregister_chrdev in 2.3.30 ?

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 8 Dec 1999 14:19:48 +0000 (GMT)


>
> I'm writing a minimalist module driver to play with a dsp card.
> insmod goes nicely, rmmod _seems_ to go nicely, but them cat
> /proc/devices generates an oops:
>

You've failed to release your device. An unregister of some kind I think

> if (register_chrdev(121, "iiadc64", &iiadc64_fops)) {

See

> void cleanup_module(void)
> {
> free_page(is.memory);
> unregister_chrdev(120, "iiadc64");
> }

You unregister 120 !

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/