Messages in this thread | | | Subject | Re: [PATCH] Drop second arg of unregister_chrdev() | From | (Jonathan Corbet) | Date | Tue, 15 Aug 2006 13:52:31 -0600 |
| |
> * "name" is trivially unused. > * Requirement to pass to unregister function anything but cookie you've > got from register counterpart is wrong.
Might this, instead, be an opportunity to get rid of the internal register_chrdev() and unregister_chrdev() calls in favor of the cdev interface? register_chrdev() is a bit of a backward-compatibility hack at this point, and cdevs, in theory, are safer since they won't present drivers with minor numbers they might not be prepared to handle.
jon
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |