Eliminate devclass_find_free_unit call here, since -1 gives the same

net behavior.
This commit is contained in:
Warner Losh 2009-06-10 17:39:19 +00:00
parent 5dd6aaba88
commit 61deeba0ff
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193934

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);
}