Re: cdev documentation (was Drop second arg of unregister_chrdev())

From: Dmitry Torokhov
Date: Fri Aug 18 2006 - 08:30:06 EST

On 8/18/06, Rolf Eike Beer <eike-kernel@xxxxxxxxx> wrote:

While I was sneaking around in the code I found this drivers/char/tty_io:3093

cdev_init(&driver->cdev, &tty_fops);
driver->cdev.owner = driver->owner;
error = cdev_add(&driver->cdev, dev, driver->num);
if (error) {

Isn't the call to cdev_del() just wrong here?

Yes, itlooks like it shouldjust be removed.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at