summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/psim
diff options
context:
space:
mode:
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