NODEVFS cleanup:

Remove cdevsw_add() and cdevsw_remove(), they served us well for a long time.
Bump __FreeBSD_version to 500104 to mark this.
This commit is contained in:
Poul-Henning Kamp 2003-02-27 07:40:44 +00:00
parent 4c61f9036b
commit f477b4fd53
4 changed files with 1 additions and 27 deletions

View File

@ -127,28 +127,6 @@ devsw(dev_t dev)
return (&dead_cdevsw);
}
/*
* Add a cdevsw entry
*/
int
cdevsw_add(struct cdevsw *newentry)
{
return (0);
}
/*
* Remove a cdevsw entry
*/
int
cdevsw_remove(struct cdevsw *oldentry)
{
return 0;
}
/*
* dev_t and u_dev_t primitives
*/

View File

@ -307,8 +307,6 @@ static moduledata_t name##_mod = { \
DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
int cdevsw_add(struct cdevsw *_new);
int cdevsw_remove(struct cdevsw *_old);
int count_dev(dev_t _dev);
void destroy_dev(dev_t _dev);
void revoke_and_destroy_dev(dev_t _dev);

View File

@ -307,8 +307,6 @@ static moduledata_t name##_mod = { \
DECLARE_MODULE(name, name##_mod, SI_SUB_DRIVERS, SI_ORDER_MIDDLE)
int cdevsw_add(struct cdevsw *_new);
int cdevsw_remove(struct cdevsw *_old);
int count_dev(dev_t _dev);
void destroy_dev(dev_t _dev);
void revoke_and_destroy_dev(dev_t _dev);

View File

@ -55,7 +55,7 @@
* doc/en_US.ISO8859-1/books/porters-handbook/book.sgml
*/
#undef __FreeBSD_version
#define __FreeBSD_version 500103 /* Master, propagated to newvers */
#define __FreeBSD_version 500104 /* Master, propagated to newvers */
#ifndef NULL
#define NULL 0