Move from using devclass_find_free_unit(ata_devclass, 0) to -1 for the

unit number.  Basically they are the same...
This commit is contained in:
Warner Losh 2009-06-10 17:40:18 +00:00
parent 61deeba0ff
commit 70472b848c

View File

@ -114,9 +114,7 @@ ata_iobus_attach(device_t dev)
* Add a single child per controller. Should be able
* to add two
*/
device_add_child(dev, "ata",
devclass_find_free_unit(ata_devclass, 0));
device_add_child(dev, "ata", -1);
return (bus_generic_attach(dev));
}