summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-09-25 08:56:57 +0000
committerphk <phk@FreeBSD.org>2004-09-25 08:56:57 +0000
commit0a21e60f7a0fecec407baeed331269e04c59e1c3 (patch)
tree83f418e9c83944f08666f46e2f8b2d86ad250682
parentf4636b5020e9adbbd9f597c0ab9785e5b7125a5e (diff)
downloadFreeBSD-src-0a21e60f7a0fecec407baeed331269e04c59e1c3.zip
FreeBSD-src-0a21e60f7a0fecec407baeed331269e04c59e1c3.tar.gz
Use the floppy drive unit number to name the /dev entry, not the
controller unit number. Submitted by: Rostislav Krasny <rosti_bsd@yahoo.com>
-rw-r--r--sys/dev/fdc/fdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index e0160a7..9e46194 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -1932,7 +1932,7 @@ fd_attach2(void *arg, int flag)
fd = arg;
fd->fd_geom = g_new_geomf(&g_fd_class,
- "fd%d", device_get_unit(fd->fdc->fdc_dev));
+ "fd%d", device_get_unit(fd->dev));
fd->fd_provider = g_new_providerf(fd->fd_geom, fd->fd_geom->name);
fd->fd_geom->softc = fd;
g_error_provider(fd->fd_provider, 0);
OpenPOWER on IntegriCloud