summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/psim
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-06-10 17:40:18 +0000
committerimp <imp@FreeBSD.org>2009-06-10 17:40:18 +0000
commitcb4bb46e16771920eba461d86aadfd0f21eb13f1 (patch)
tree40cce7f40522479aca9cc669c4a23e883e1fad1b /sys/powerpc/psim
parente076c566563030e7bd480f26dca14f579c8e3984 (diff)
downloadFreeBSD-src-cb4bb46e16771920eba461d86aadfd0f21eb13f1.zip
FreeBSD-src-cb4bb46e16771920eba461d86aadfd0f21eb13f1.tar.gz
Move from using devclass_find_free_unit(ata_devclass, 0) to -1 for the
unit number. Basically they are the same...
Diffstat (limited to 'sys/powerpc/psim')
-rw-r--r--sys/powerpc/psim/ata_iobus.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/powerpc/psim/ata_iobus.c b/sys/powerpc/psim/ata_iobus.c
index f9b4a56..a70d008 100644
--- a/sys/powerpc/psim/ata_iobus.c
+++ b/sys/powerpc/psim/ata_iobus.c
@@ -114,9 +114,7 @@ ata_iobus_attach(device_t dev)
* Add a single child per controller. Should be able
* to add two
*/
- device_add_child(dev, "ata",
- devclass_find_free_unit(ata_devclass, 0));
-
+ device_add_child(dev, "ata", -1);
return (bus_generic_attach(dev));
}
OpenPOWER on IntegriCloud