staging: comedi: addi_apci_1564: don't allocate unused subdevices
authorChase Southwood <chase.southwood@gmail.com>
Sat, 3 May 2014 07:56:27 +0000 (02:56 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 12:16:48 +0000 (21:16 +0900)
commit9f2dbefb0ddb548b9a062f6ca729534efc15b0d6
treeaa7e70ccaf7afb91ee6dc8ebf61c6e1edd18bbc7
parent33ae8a5ed3017cfca5742deff4039dd912690015
staging: comedi: addi_apci_1564: don't allocate unused subdevices

The addi-data common code always allocates 7 subdevices.  This driver
cannot or will not use the ones we are currently allocating for analog
input and output or EEPROM, so just don't allocate these subdevices at
all.

Signed-off-by: Chase Southwood <chase.southwood@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Reviewed-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_1564.c