summaryrefslogtreecommitdiffstats
path: root/sys/isa/fd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-12-28 21:39:04 +0000
committerphk <phk@FreeBSD.org>2002-12-28 21:39:04 +0000
commit75fab78fe60199801648eee3702440f1e9c32a26 (patch)
tree877aa4af03e965d45214d24688c7a31c2907e6e2 /sys/isa/fd.c
parent0fe137bfcf1fab7b476f4bbc972372d0c4bbd918 (diff)
downloadFreeBSD-src-75fab78fe60199801648eee3702440f1e9c32a26.zip
FreeBSD-src-75fab78fe60199801648eee3702440f1e9c32a26.tar.gz
Remove calls to cdevsw_add(), they are dreprecated on this branch now.
Diffstat (limited to 'sys/isa/fd.c')
-rw-r--r--sys/isa/fd.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index 507daa9..1fc50a3 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.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);
OpenPOWER on IntegriCloud