Move from using devclass_find_free_unit(cfi_diskclass, 0) to -1, since

they have the same basic behavior.
This commit is contained in:
Warner Losh 2009-06-10 17:41:24 +00:00
parent 70472b848c
commit f3a36f8193

View File

@ -285,8 +285,7 @@ cfi_attach(device_t dev)
"%s%u", cfi_driver_name, u);
sc->sc_nod->si_drv1 = sc;
device_add_child(dev, "cfid",
devclass_find_free_unit(cfi_diskclass, 0));
device_add_child(dev, "cfid", -1);
bus_generic_attach(dev);
return (0);