From 98a61a385e29acaa59fd2d42e5c3ee74b0d8b93f Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 4 Nov 2001 08:54:15 +0000 Subject: [PATCH] Don't call cdevsw_add() --- sys/dev/scd/scd.c | 4 ---- sys/i386/isa/scd.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/sys/dev/scd/scd.c b/sys/dev/scd/scd.c index 4561d90052e2..fb11abb262d9 100644 --- a/sys/dev/scd/scd.c +++ b/sys/dev/scd/scd.c @@ -696,10 +696,6 @@ scd_probe(struct isa_device *dev) static char namebuf[8+16+8+3]; char *s = namebuf; int loop_count = 0; - static int once; - - if (!once++) - cdevsw_add(&scd_cdevsw); scd_data[unit].flags = SCDPROBING; scd_data[unit].iobase = dev->id_iobase; diff --git a/sys/i386/isa/scd.c b/sys/i386/isa/scd.c index 4561d90052e2..fb11abb262d9 100644 --- a/sys/i386/isa/scd.c +++ b/sys/i386/isa/scd.c @@ -696,10 +696,6 @@ scd_probe(struct isa_device *dev) static char namebuf[8+16+8+3]; char *s = namebuf; int loop_count = 0; - static int once; - - if (!once++) - cdevsw_add(&scd_cdevsw); scd_data[unit].flags = SCDPROBING; scd_data[unit].iobase = dev->id_iobase;