staging: comedi: addi_apci_2032: only allocate needed subdevices
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 30 Nov 2012 01:18:03 +0000 (18:18 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Nov 2012 02:05:30 +0000 (18:05 -0800)
commit0c33bdd01abf1d6722792b2022b974116151a572
tree270548118b09f3f78bf5fe27d216789e2c3b6355
parent490555966e77f7e3e8ccbe70629a149451b56a3c
staging: comedi: addi_apci_2032: only allocate needed subdevices

The addi-data "common" code always allocated 7 subdevices. This driver
only requires 2. Change the allocation and remove the unused subdevices.

Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com>
Cc: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/addi_apci_2032.c