Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2009 17:39:19 +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: r193934 - head/sys/arm/at91
Message-ID:  <200906101739.n5AHdJ4x020815@svn.freebsd.org>

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



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