summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1998-12-14 16:29:58 +0000
committerbde <bde@FreeBSD.org>1998-12-14 16:29:58 +0000
commit746dcb079d5a1644ad2fbf1b52d3ca2be47597ac (patch)
tree61e0280f06ced7139ff38fe3974e0a562c929dbc /sys/dev/fdc
parentb1c84799bb53797a0961851392b9f99fb23023e0 (diff)
downloadFreeBSD-src-746dcb079d5a1644ad2fbf1b52d3ca2be47597ac.zip
FreeBSD-src-746dcb079d5a1644ad2fbf1b52d3ca2be47597ac.tar.gz
Fixed LINT breakage in previous commit. Option FDC_YE enabled a
syntax error. Options FDC_YE and DEVFS together enabled references to a nonexistent variable and calls of a nonexistent function.
Diffstat (limited to 'sys/dev/fdc')
-rw-r--r--sys/dev/fdc/fdc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index e139cd7..e644f78 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -47,7 +47,7 @@
* SUCH DAMAGE.
*
* from: @(#)fd.c 7.4 (Berkeley) 5/25/91
- * $Id: fd.c,v 1.127 1998/12/10 19:56:59 eivind Exp $
+ * $Id: fd.c,v 1.128 1998/12/12 08:16:01 imp Exp $
*
*/
@@ -278,7 +278,7 @@ static char const * const fdstates[] =
"IOTIMEDOUT",
"RESETCOMPLETE",
#ifdef FDC_YE
-,"PIOREAD"
+"PIOREAD",
#endif
};
@@ -1021,7 +1021,7 @@ static int yeattach(struct isa_device *dev)
#ifdef DEVFS
mynor = fdcu << 6;
- fd->bdevs[0] = devfs_add_devswf(&fd_bdevsw, mynor, DV_BLK,
+ fd->bdevs[0] = devfs_add_devswf(&fd_cdevsw, mynor, DV_BLK,
UID_ROOT, GID_OPERATOR, 0640,
"fd%d", fdu);
fd->cdevs[0] = devfs_add_devswf(&fd_cdevsw, mynor, DV_CHR,
@@ -1041,16 +1041,16 @@ static int yeattach(struct isa_device *dev)
typesize = 1480;
if (typesize == 1722)
typesize = 1720;
- fd->bdevs[FD_1440] = devfs_add_devswf(&fd_bdevsw, typemynor,
+ fd->bdevs[FD_1440] = devfs_add_devswf(&fd_cdevsw, typemynor,
DV_BLK, UID_ROOT, GID_OPERATOR,
0640, "fd%d.%d", fdu, typesize);
fd->cdevs[FD_1440] = devfs_add_devswf(&fd_cdevsw, typemynor,
DV_CHR, UID_ROOT, GID_OPERATOR,
0640,"rfd%d.%d", fdu, typesize);
for (i = 0; i < MAXPARTITIONS; i++) {
- fd->bdevs[1 + NUMDENS + i] = devfs_link(fd->bdevs[0],
+ fd->bdevs[1 + NUMDENS + i] = devfs_makelink(fd->bdevs[0],
"fd%d%c", fdu, 'a' + i);
- fd->cdevs[1 + NUMDENS + i] = devfs_link(fd->cdevs[0],
+ fd->cdevs[1 + NUMDENS + i] = devfs_makelink(fd->cdevs[0],
"rfd%d%c", fdu, 'a' + i);
}
#endif /* DEVFS */
OpenPOWER on IntegriCloud