? TODO Index: pccard.c =================================================================== RCS file: /home/imp/FreeBSD/CVS/src/sys/pccard/pccard.c,v retrieving revision 1.106.2.9 diff -u -r1.106.2.9 pccard.c --- pccard.c 2001/08/01 20:07:03 1.106.2.9 +++ pccard.c 2001/09/11 18:36:32 @@ -44,6 +44,7 @@ #include #include #include +#include #include #include @@ -210,8 +211,19 @@ device_t pccarddev; int err, irq = 0; device_t child; + device_t *devs; + int count; pccarddev = slt->dev; + err = device_get_children(pccarddev, &devs, &count); + if (err != 0) + return (err); + free(devs, M_TEMP); + if (count) { + device_printf(pccarddev, + "Can not attach more than one child.\n"); + return (EIO); + } irq = ffs(desc->irqmask) - 1; MALLOC(devi, struct pccard_devinfo *, sizeof(*devi), M_DEVBUF, M_WAITOK | M_ZERO);