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);
 }
_______________________________________________
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"

Reply via email to