summaryrefslogtreecommitdiffstats
path: root/sys/pc98/cbus/fdc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pc98/cbus/fdc.c')
-rw-r--r--sys/pc98/cbus/fdc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index beb2c98..a21cb8a 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -1385,10 +1385,14 @@ fd_attach(device_t dev)
int typemynor;
int typesize;
#endif
+ static int cdevsw_add_done = 0;
fd = device_get_softc(dev);
- cdevsw_add(&fd_cdevsw); /* XXX */
+ if (!cdevsw_add_done) {
+ cdevsw_add(&fd_cdevsw); /* XXX */
+ cdevsw_add_done++;
+ }
make_dev(&fd_cdevsw, (fd->fdu << 6),
UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu);
OpenPOWER on IntegriCloud