Eliminate bogus use of makedev(): rather than synthesize the dev_t, use
our already cached copy.
This commit is contained in:
parent
02b63ceaff
commit
ff2cf8a51d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120461
@ -1933,8 +1933,7 @@ digi_detach(device_t dev)
|
||||
|
||||
digi_free_state(sc);
|
||||
|
||||
destroy_dev(makedev(CDEV_MAJOR,
|
||||
(sc->res.unit << 16) | CTRL_DEV));
|
||||
destroy_dev(sc->res.ctldev);
|
||||
|
||||
if (sc->res.mem != NULL) {
|
||||
bus_release_resource(dev, SYS_RES_MEMORY, sc->res.mrid,
|
||||
|
Loading…
Reference in New Issue
Block a user