summaryrefslogtreecommitdiffstats
path: root/sys/pccard/pcic.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pccard/pcic.c')
-rw-r--r--sys/pccard/pcic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index 7fb7d7d..4ba9b5c 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -499,12 +499,12 @@ pcic_attach(device_t dev)
struct pcic_slot *sp;
int i;
+ SET_UNIT(dev, validunits);
sp = &pcic_slots[GET_UNIT(dev) * PCIC_CARD_SLOTS];
for (i = 0; i < PCIC_CARD_SLOTS; i++, sp++) {
if (sp->slt)
device_add_child(dev, NULL, -1);
}
- SET_UNIT(dev, validunits);
validunits++;
rid = 0;
OpenPOWER on IntegriCloud