From 900942ba53dcb28b62de997bcdd08b6a251cfda3 Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Mon, 8 Nov 1999 08:10:00 +0000 Subject: [PATCH] Zap devsw_module_handler(). --- sys/kern/kern_conf.c | 12 ------------ sys/sys/conf.h | 1 - sys/sys/linedisc.h | 1 - 3 files changed, 14 deletions(-) diff --git a/sys/kern/kern_conf.c b/sys/kern/kern_conf.c index a50a1030979b..0400a15551e9 100644 --- a/sys/kern/kern_conf.c +++ b/sys/kern/kern_conf.c @@ -172,18 +172,6 @@ cdevsw_remove(struct cdevsw *oldentry) return 0; } -int -devsw_module_handler(module_t mod, int what, void* arg) -{ - struct devsw_module_data* data = (struct devsw_module_data*) arg; - int error = 0; - - if (data->chainevh) - return data->chainevh(mod, what, data->chainarg); - else - return 0; -} - /* * dev_t and u_dev_t primitives */ diff --git a/sys/sys/conf.h b/sys/sys/conf.h index d276d8de3778..8b92374b0229 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -260,7 +260,6 @@ int cdevsw_remove __P((struct cdevsw *old)); dev_t chrtoblk __P((dev_t dev)); void destroy_dev __P((dev_t dev)); struct cdevsw *devsw __P((dev_t dev)); -int devsw_module_handler __P((struct module *mod, int what, void *arg)); const char *devtoname __P((dev_t dev)); void freedev __P((dev_t dev)); int iszerodev __P((dev_t dev)); diff --git a/sys/sys/linedisc.h b/sys/sys/linedisc.h index d276d8de3778..8b92374b0229 100644 --- a/sys/sys/linedisc.h +++ b/sys/sys/linedisc.h @@ -260,7 +260,6 @@ int cdevsw_remove __P((struct cdevsw *old)); dev_t chrtoblk __P((dev_t dev)); void destroy_dev __P((dev_t dev)); struct cdevsw *devsw __P((dev_t dev)); -int devsw_module_handler __P((struct module *mod, int what, void *arg)); const char *devtoname __P((dev_t dev)); void freedev __P((dev_t dev)); int iszerodev __P((dev_t dev));