diff options
author | imp <imp@FreeBSD.org> | 2009-06-10 17:39:19 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2009-06-10 17:39:19 +0000 |
commit | e076c566563030e7bd480f26dca14f579c8e3984 (patch) | |
tree | 5fcb3423d84ba33a5c994898e75bee26b5087859 /sys/arm | |
parent | 4184c1892023512d4b180c5e5ef01d8661fc2064 (diff) | |
download | FreeBSD-src-e076c566563030e7bd480f26dca14f579c8e3984.zip FreeBSD-src-e076c566563030e7bd480f26dca14f579c8e3984.tar.gz |
Eliminate devclass_find_free_unit call here, since -1 gives the same
net behavior.
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/at91/at91_cfata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/at91/at91_cfata.c b/sys/arm/at91/at91_cfata.c index dcc06bb..37ce434 100644 --- a/sys/arm/at91/at91_cfata.c +++ b/sys/arm/at91/at91_cfata.c @@ -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); } |