mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-30 15:38:06 +01:00
devclass_find_free_unit(xxx, 0) is identical to -1 for most
applications (including this one). Switch to it since the former is a racy interface.
This commit is contained in:
parent
f0c6b798a3
commit
b27c946750
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194044
@ -248,7 +248,7 @@ ata_avila_attach(device_t dev)
|
||||
NULL, ata_avila_intr, sc, &sc->sc_ih);
|
||||
|
||||
/* attach channel on this controller */
|
||||
device_add_child(dev, "ata", devclass_find_free_unit(ata_devclass, 0));
|
||||
device_add_child(dev, "ata", -1);
|
||||
bus_generic_attach(dev);
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user