staging: comedi: addi_apci_2032: separate from addi_common.c
authorH Hartley Sweeten <hartleys@visionengravers.com>
Fri, 30 Nov 2012 01:14:13 +0000 (18:14 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 30 Nov 2012 02:05:28 +0000 (18:05 -0800)
commit25adf2ccf68814fade52f70ed2888b65db1e5156
tree01ca57404cf4c97ed365205232516007720c5817
parent8b7a13c3f404cbd26b495fa9c34339cb9b7b8164
staging: comedi: addi_apci_2032: separate from addi_common.c

This driver is for a simple 32 channel digital output board. Using the
addi-data "common" code introduces a lot of bloat.

Copy the code in addi_common.c to this driver and remove the #include
that caused addi_common.c to be compiled with this driver. This will
allow removing the bloat.

Rename the attach_pci and detach functions so they have namespace
associated with this driver.

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