Author: imp Date: Wed Jun 10 17:40:18 2009 New Revision: 193935 URL: http://svn.freebsd.org/changeset/base/193935
Log: Move from using devclass_find_free_unit(ata_devclass, 0) to -1 for the unit number. Basically they are the same... Modified: head/sys/powerpc/psim/ata_iobus.c Modified: head/sys/powerpc/psim/ata_iobus.c ============================================================================== --- head/sys/powerpc/psim/ata_iobus.c Wed Jun 10 17:39:19 2009 (r193934) +++ head/sys/powerpc/psim/ata_iobus.c Wed Jun 10 17:40:18 2009 (r193935) @@ -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)); } _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"