]> git.karo-electronics.de Git - linux-beck.git/commit
staging: comedi: addi_apci_16xx: only allocate needed subdevices
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Fri, 18 Jan 2013 17:46:17 +0000 (10:46 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 20:57:23 +0000 (12:57 -0800)
commitb6e7714cc261ef478f95449a32565d41378c9a87
treea9650ec2b7192ab1a1839513a71e776b739096b7
parenta6c2f99ec6a10eb5d6730087d79eb68b51af3c4e
staging: comedi: addi_apci_16xx: only allocate needed subdevices

The addi-data "common" code always allocated 7 subdevices. This
driver only uses 1. 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_16xx.c