diff options
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-rw-r--r-- | sys/dev/fdc/fdc.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 507daa9..1fc50a3 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -1323,13 +1323,8 @@ static int fd_attach(device_t dev) { struct fd_data *fd; - static int cdevsw_add_done; int i; - if (!cdevsw_add_done) { - cdevsw_add(&fd_cdevsw); /* XXX */ - cdevsw_add_done = 1; - } fd = device_get_softc(dev); fd->clonetag = EVENTHANDLER_REGISTER(dev_clone, fd_clone, fd, 1000); fd->masterdev = make_dev(&fd_cdevsw, fd->fdu << 6, @@ -1356,7 +1351,6 @@ fd_detach(device_t dev) for (i = 0; i < NUMDENS - 1; i++) if (fd->clonedevs[i] != NODEV) destroy_dev(fd->clonedevs[i]); - cdevsw_remove(&fd_cdevsw); EVENTHANDLER_DEREGISTER(dev_clone, fd->clonetag); return (0); |