Use the floppy drive unit number to name the /dev entry, not the

controller unit number.

Submitted by:	Rostislav Krasny <rosti_bsd@yahoo.com>
This commit is contained in:
Poul-Henning Kamp 2004-09-25 08:56:57 +00:00
parent acb4f7825e
commit 3ba0c6b127

View File

@ -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);