Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2009 17:40:18 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193935 - head/sys/powerpc/psim
Message-ID:  <200906101740.n5AHeICh020876@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906101740.n5AHeICh020876>