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:
Warner Losh 2009-06-12 00:07:09 +00:00
parent f0c6b798a3
commit b27c946750
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194044

View file

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