summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>2002-04-06 06:43:55 +0000
committernyan <nyan@FreeBSD.org>2002-04-06 06:43:55 +0000
commit3596e8cbe3a3ed4c5cf03996177c0b980a29782d (patch)
treee70d6207b5313dfec33e9ef73c6c1982975a8cbe /sys/pc98
parente4475cba04c7df5e75f0a30c03ee74a81ee73228 (diff)
downloadFreeBSD-src-3596e8cbe3a3ed4c5cf03996177c0b980a29782d.zip
FreeBSD-src-3596e8cbe3a3ed4c5cf03996177c0b980a29782d.tar.gz
Merged from sys/isa/fd.c revision 1.228.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/fdc.c2
-rw-r--r--sys/pc98/pc98/fd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/pc98/cbus/fdc.c b/sys/pc98/cbus/fdc.c
index e8b85c3..483a982 100644
--- a/sys/pc98/cbus/fdc.c
+++ b/sys/pc98/cbus/fdc.c
@@ -3248,7 +3248,7 @@ fdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
fdt = fd->ft;
lp->d_secpercyl = fdt->size / fdt->tracks;
lp->d_type = DTYPE_FLOPPY;
- if (readdisklabel(dkmodpart(dev, RAW_PART), lp) != NULL)
+ if (readdisklabel(dev, lp) != NULL)
error = EINVAL;
else
*(struct disklabel *)addr = *lp;
diff --git a/sys/pc98/pc98/fd.c b/sys/pc98/pc98/fd.c
index e8b85c3..483a982 100644
--- a/sys/pc98/pc98/fd.c
+++ b/sys/pc98/pc98/fd.c
@@ -3248,7 +3248,7 @@ fdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct thread *td)
fdt = fd->ft;
lp->d_secpercyl = fdt->size / fdt->tracks;
lp->d_type = DTYPE_FLOPPY;
- if (readdisklabel(dkmodpart(dev, RAW_PART), lp) != NULL)
+ if (readdisklabel(dev, lp) != NULL)
error = EINVAL;
else
*(struct disklabel *)addr = *lp;
OpenPOWER on IntegriCloud