diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-26 21:01:26 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-02-26 21:01:26 +0000 |
commit | f400e58886c70a02dd0e2b4e79ddbcd85886d13a (patch) | |
tree | 2941e2fb600b13fc7a03ba30d91323d2691a8ab9 | |
parent | 109a8a2e4719edf1c4499571b5566b98362ce689 (diff) | |
download | src-f400e58886c70a02dd0e2b4e79ddbcd85886d13a.tar.gz src-f400e58886c70a02dd0e2b4e79ddbcd85886d13a.zip |
Notes
-rw-r--r-- | sys/coda/coda_fbsd.c | 2 | ||||
-rw-r--r-- | sys/dev/iir/iir_ctrl.c | 15 | ||||
-rw-r--r-- | sys/fs/coda/coda_fbsd.c | 2 | ||||
-rw-r--r-- | sys/i386/isa/cx.c | 9 |
4 files changed, 0 insertions, 28 deletions
diff --git a/sys/coda/coda_fbsd.c b/sys/coda/coda_fbsd.c index 74a7eaa4031a..6907c63b58c9 100644 --- a/sys/coda/coda_fbsd.c +++ b/sys/coda/coda_fbsd.c @@ -202,7 +202,6 @@ static void coda_fbsd_drvinit(unused) int i; EVENTHANDLER_REGISTER(dev_clone,coda_fbsd_clone,0,1000); - cdevsw_add(&codadevsw); for(i=0;i<NVCODA;i++) coda_mnttbl[i].dev = NULL; } @@ -216,7 +215,6 @@ static void coda_fbsd_drvuninit(unused) for(i=0;i<NVCODA;i++) if(coda_mnttbl[i].dev) destroy_dev(coda_mnttbl[i].dev); - cdevsw_remove(&codadevsw); } SYSINIT(coda_fbsd_dev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+VC_DEV_NO,coda_fbsd_drvinit,NULL); diff --git a/sys/dev/iir/iir_ctrl.c b/sys/dev/iir/iir_ctrl.c index 1b3fc166df37..7522b17e57d2 100644 --- a/sys/dev/iir/iir_ctrl.c +++ b/sys/dev/iir/iir_ctrl.c @@ -85,7 +85,6 @@ static struct cdevsw iir_cdevsw = { /* kq */ nokqfilter }; -static int iir_devsw_installed = 0; #ifndef SDEV_PER_HBA static int sdev_made = 0; #endif @@ -356,17 +355,3 @@ iir_ioctl(dev_t dev, u_long cmd, caddr_t cmdarg, int flags, d_thread_t * p) --gdt_stat.io_count_act; return (0); } - -static void -iir_drvinit(void *unused) -{ - GDT_DPRINTF(GDT_D_DEBUG, ("iir_drvinit()\n")); - - if (!iir_devsw_installed) { - /* Add the I/O (data) channel */ - cdevsw_add(&iir_cdevsw); - iir_devsw_installed = 1; - } -} - -SYSINIT(iir_dev, SI_SUB_DRIVERS, SI_ORDER_MIDDLE + CDEV_MAJOR, iir_drvinit, NULL) diff --git a/sys/fs/coda/coda_fbsd.c b/sys/fs/coda/coda_fbsd.c index 74a7eaa4031a..6907c63b58c9 100644 --- a/sys/fs/coda/coda_fbsd.c +++ b/sys/fs/coda/coda_fbsd.c @@ -202,7 +202,6 @@ static void coda_fbsd_drvinit(unused) int i; EVENTHANDLER_REGISTER(dev_clone,coda_fbsd_clone,0,1000); - cdevsw_add(&codadevsw); for(i=0;i<NVCODA;i++) coda_mnttbl[i].dev = NULL; } @@ -216,7 +215,6 @@ static void coda_fbsd_drvuninit(unused) for(i=0;i<NVCODA;i++) if(coda_mnttbl[i].dev) destroy_dev(coda_mnttbl[i].dev); - cdevsw_remove(&codadevsw); } SYSINIT(coda_fbsd_dev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+VC_DEV_NO,coda_fbsd_drvinit,NULL); diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index e902f84bdb1d..e8144151f971 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -885,12 +885,3 @@ void cxtimeout (void *a) } timeout (cxtimeout, 0, hz*5); } - - -static void cx_drvinit(void *unused) -{ - - cdevsw_add(&cx_cdevsw); -} - -SYSINIT(cxdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,cx_drvinit,NULL) |