svn commit: r193934 - head/sys/arm/at91

Warner Losh imp at FreeBSD.org
Wed Jun 10 17:39:20 UTC 2009


Author: imp
Date: Wed Jun 10 17:39:19 2009
New Revision: 193934
URL: http://svn.freebsd.org/changeset/base/193934

Log:
  Eliminate devclass_find_free_unit call here, since -1 gives the same
  net behavior.

Modified:
  head/sys/arm/at91/at91_cfata.c

Modified: head/sys/arm/at91/at91_cfata.c
==============================================================================
--- head/sys/arm/at91/at91_cfata.c	Wed Jun 10 17:30:12 2009	(r193933)
+++ head/sys/arm/at91/at91_cfata.c	Wed Jun 10 17:39:19 2009	(r193934)
@@ -94,7 +94,7 @@ at91_cfata_attach(device_t dev)
 	/* XXX: init CF controller? */
 
 	callout_init(&sc->tick, 1);	/* Callout to poll the device. */
-	device_add_child(dev, "ata", devclass_find_free_unit(ata_devclass, 0));
+	device_add_child(dev, "ata", -1);
 	bus_generic_attach(dev);
 	return (0);
 }


More information about the svn-src-head mailing list