Eliminate devclass_find_free_unit call here, since -1 gives the same

net behavior.
This commit is contained in:
imp 2009-06-10 17:39:19 +00:00
parent 4184c18920
commit e076c56656

View File

@ -94,7 +94,7 @@ at91_cfata_attach(device_t dev)
/* XXX: init CF controller? */
callout_init(&sc->tick, 1); /* Callout to poll the device. */
device_add_child(dev, "ata", devclass_find_free_unit(ata_devclass, 0));
device_add_child(dev, "ata", -1);
bus_generic_attach(dev);
return (0);
}