summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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