staging: comedi: addi_apci_2200: only allocate needed subdevices
authorH Hartley Sweeten <hsweeten@visionengravers.com>
Mon, 21 Jan 2013 22:19:32 +0000 (15:19 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Jan 2013 00:03:02 +0000 (16:03 -0800)
commit20f2e2e1ceee6575794e9957912399d7ead8458f
tree571cdefbd5f3ff0fbd9b2e2f82573a0eea14c8c8
parent5872471364f0a49f95a8efbec80c622a24c7df6b
staging: comedi: addi_apci_2200: only allocate needed subdevices

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

Update the comments for the initialization of each subdevice.

Also, update the subdevice that is passed to addi_watchdog_cleanup()
to match the new subdevice number.

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_2200.c