mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-08 17:40:31 +00:00
This change slipped through hidden in a CVS conflict. Logically belongs
to the previous commit (fix resource deallocation).
This commit is contained in:
parent
c46eebd508
commit
5f431174f3
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=78955
|
@ -1154,10 +1154,10 @@ fd_attach(device_t dev)
|
||||||
cdevsw_add(&fd_cdevsw); /* XXX */
|
cdevsw_add(&fd_cdevsw); /* XXX */
|
||||||
cdevsw_add_done = 1;
|
cdevsw_add_done = 1;
|
||||||
}
|
}
|
||||||
EVENTHANDLER_REGISTER(dev_clone, fd_clone, 0, 1000);
|
|
||||||
fd = device_get_softc(dev);
|
fd = device_get_softc(dev);
|
||||||
make_dev(&fd_cdevsw, fd->fdu << 6,
|
fd->clonetag = EVENTHANDLER_REGISTER(dev_clone, fd_clone, 0, 1000);
|
||||||
UID_ROOT, GID_OPERATOR, 0640, "fd%d", fd->fdu);
|
fd->masterdev = make_dev(&fd_cdevsw, fd->fdu << 6,
|
||||||
|
UID_ROOT, GID_OPERATOR, 0640, "fd%d", fd->fdu);
|
||||||
devstat_add_entry(&fd->device_stats, device_get_name(dev),
|
devstat_add_entry(&fd->device_stats, device_get_name(dev),
|
||||||
device_get_unit(dev), 0, DEVSTAT_NO_ORDERED_TAGS,
|
device_get_unit(dev), 0, DEVSTAT_NO_ORDERED_TAGS,
|
||||||
DEVSTAT_TYPE_FLOPPY | DEVSTAT_TYPE_IF_OTHER,
|
DEVSTAT_TYPE_FLOPPY | DEVSTAT_TYPE_IF_OTHER,
|
||||||
|
|
|
@ -1154,10 +1154,10 @@ fd_attach(device_t dev)
|
||||||
cdevsw_add(&fd_cdevsw); /* XXX */
|
cdevsw_add(&fd_cdevsw); /* XXX */
|
||||||
cdevsw_add_done = 1;
|
cdevsw_add_done = 1;
|
||||||
}
|
}
|
||||||
EVENTHANDLER_REGISTER(dev_clone, fd_clone, 0, 1000);
|
|
||||||
fd = device_get_softc(dev);
|
fd = device_get_softc(dev);
|
||||||
make_dev(&fd_cdevsw, fd->fdu << 6,
|
fd->clonetag = EVENTHANDLER_REGISTER(dev_clone, fd_clone, 0, 1000);
|
||||||
UID_ROOT, GID_OPERATOR, 0640, "fd%d", fd->fdu);
|
fd->masterdev = make_dev(&fd_cdevsw, fd->fdu << 6,
|
||||||
|
UID_ROOT, GID_OPERATOR, 0640, "fd%d", fd->fdu);
|
||||||
devstat_add_entry(&fd->device_stats, device_get_name(dev),
|
devstat_add_entry(&fd->device_stats, device_get_name(dev),
|
||||||
device_get_unit(dev), 0, DEVSTAT_NO_ORDERED_TAGS,
|
device_get_unit(dev), 0, DEVSTAT_NO_ORDERED_TAGS,
|
||||||
DEVSTAT_TYPE_FLOPPY | DEVSTAT_TYPE_IF_OTHER,
|
DEVSTAT_TYPE_FLOPPY | DEVSTAT_TYPE_IF_OTHER,
|
||||||
|
|
Loading…
Reference in a new issue