mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 13:22:48 +00:00
Eliminate devclass_find_free_unit call here, since -1 gives the same
net behavior.
This commit is contained in:
parent
5dd6aaba88
commit
61deeba0ff
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193934
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user