]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a1b88e0d5fe2d6e7e465128d7e080b1db5ddd3d
treeaa7e70ccaf7afb91ee6dc8ebf61c6e1edd18bbc7
parent5f4dc0f7b967c43f4cf26f60fe3219cfda561f95
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