From f3a36f8193f058014bfb03e7738e959ca8e31a30 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 10 Jun 2009 17:41:24 +0000 Subject: [PATCH] Move from using devclass_find_free_unit(cfi_diskclass, 0) to -1, since they have the same basic behavior. --- sys/dev/cfi/cfi_core.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/dev/cfi/cfi_core.c b/sys/dev/cfi/cfi_core.c index 112ece2fe552..6179f0a5a79a 100644 --- a/sys/dev/cfi/cfi_core.c +++ b/sys/dev/cfi/cfi_core.c @@ -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);