From f477b4fd53c9d44de740f387d4bd1a539f362a82 Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Thu, 27 Feb 2003 07:40:44 +0000 Subject: [PATCH] NODEVFS cleanup: Remove cdevsw_add() and cdevsw_remove(), they served us well for a long time. Bump __FreeBSD_version to 500104 to mark this. --- sys/kern/kern_conf.c | 22 ---------------------- sys/sys/conf.h | 2 -- sys/sys/linedisc.h | 2 -- sys/sys/param.h | 2 +- 4 files changed, 1 insertion(+), 27 deletions(-) diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index 22803c1f5b34..dbc77941d97b 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -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 */ diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 7be960f48b7d..a6466ea4ad67 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -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); diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index 7be960f48b7d..a6466ea4ad67 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -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); diff --git a/sys/sys/param.h b/sys/sys/param.h index cfa94385d585..b37cbf236145 100644 --- a/sys/sys/param.h +++ b/sys/sys/param.h @@ -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