From cb4bb46e16771920eba461d86aadfd0f21eb13f1 Mon Sep 17 00:00:00 2001 From: imp Date: Wed, 10 Jun 2009 17:40:18 +0000 Subject: Move from using devclass_find_free_unit(ata_devclass, 0) to -1 for the unit number. Basically they are the same... --- sys/powerpc/psim/ata_iobus.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/powerpc/psim') 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)); } -- cgit v1.1