Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jun 2009 17:41:25 +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: r193936 - head/sys/dev/cfi
Message-ID:  <200906101741.n5AHfPkO020934@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Jun 10 17:41:24 2009
New Revision: 193936
URL: http://svn.freebsd.org/changeset/base/193936

Log:
  Move from using devclass_find_free_unit(cfi_diskclass, 0) to -1, since
  they have the same basic behavior.

Modified:
  head/sys/dev/cfi/cfi_core.c

Modified: head/sys/dev/cfi/cfi_core.c
==============================================================================
--- head/sys/dev/cfi/cfi_core.c	Wed Jun 10 17:40:18 2009	(r193935)
+++ head/sys/dev/cfi/cfi_core.c	Wed Jun 10 17:41:24 2009	(r193936)
@@ -285,8 +285,7 @@ cfi_attach(device_t dev) 
 	    "%s%u", cfi_driver_name, u);
 	sc->sc_nod->si_drv1 = sc;
 
-	device_add_child(dev, "cfid",
-	    devclass_find_free_unit(cfi_diskclass, 0));
+	device_add_child(dev, "cfid", -1);
 	bus_generic_attach(dev);
 
 	return (0);



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