Patch from Anders Blomdell: pick first board when bus/slot unspecified.
authorIan Abbott <abbotti@mev.co.uk>
Wed, 1 Oct 2008 16:18:56 +0000 (16:18 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Wed, 1 Oct 2008 16:18:56 +0000 (16:18 +0000)
comedi/drivers/daqboard2000.c

index e7aefeef6d25c51d225764fe5bc51b72b51ddb60..ba5ff0bde4bc680611354028d962d9e6380b87b6 100644 (file)
@@ -745,6 +745,7 @@ static int daqboard2000_attach(comedi_device * dev, comedi_devconfig * it)
                                continue;
                        }
                }
+               break;  /* found one */
        }
        if (!card) {
                if (bus || slot)