According to the comedi documentation at the beginning of the file, configuration option 2 sets the number of DIO channels on the boards that support 144 or 96 channels. Fix the (*attach) to use the correct configuration option. Signed-off-by: H Hartley Sweeten <hsweeten@xxxxxxxxxxxxxxxxxxx> Cc: Ian Abbott <abbotti@xxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/staging/comedi/drivers/pcl724.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/comedi/drivers/pcl724.c b/drivers/staging/comedi/drivers/pcl724.c index 61479bd..68d425f 100644 --- a/drivers/staging/comedi/drivers/pcl724.c +++ b/drivers/staging/comedi/drivers/pcl724.c @@ -106,7 +106,7 @@ static int pcl724_attach(struct comedi_device *dev, /* Handle PCL-724 in 96 DIO configuration */ if (board->can_have96 && - (it->options[1] == 1 || it->options[1] == 96)) { + (it->options[2] == 1 || it->options[2] == 96)) { iorange = 0x10; n_subdevices = 4; } -- 1.8.1.4 _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/devel