aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc/fdc.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2004-09-25 08:56:57 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2004-09-25 08:56:57 +0000
commit3ba0c6b127172366eee40a53973719101999ad8d (patch)
tree83f418e9c83944f08666f46e2f8b2d86ad250682 /sys/dev/fdc/fdc.c
parentacb4f7825e7297e5fc46e8935a69d762b82e73f3 (diff)
downloadsrc-3ba0c6b127172366eee40a53973719101999ad8d.tar.gz
src-3ba0c6b127172366eee40a53973719101999ad8d.zip
Use the floppy drive unit number to name the /dev entry, not the
controller unit number. Submitted by: Rostislav Krasny <rosti_bsd@yahoo.com>
Notes
Notes: svn path=/head/; revision=135788
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-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 e0160a7efbd1..9e46194be3ba 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);