staging: comedi: addi_apci_1516: separate from addi_common.c
authorH Hartley Sweeten <hartleys@visionengravers.com>
Tue, 13 Nov 2012 20:38:39 +0000 (13:38 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Nov 2012 23:12:45 +0000 (15:12 -0800)
commit049ff74ca0f831d08b5895bebf40fe064117e2b3
treeee3cd9db64e0691d15f78622971eb5cbe47b1979
parent393cc220bda3f16d497d9a5192a52fc08db18a89
staging: comedi: addi_apci_1516: separate from addi_common.c

This driver is for simple 16 channel dio boards. 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_1516.c