staging: comedi: amplc_pc236: split into ISA, PCI and common module
authorIan Abbott <abbotti@mev.co.uk>
Mon, 28 Jul 2014 12:09:34 +0000 (13:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Jul 2014 23:48:42 +0000 (16:48 -0700)
commit4cb60db2eabd275649b3305cc488a9794de8e463
treea50d154dcaca3dffe25f27208f04f34c3f5ef506
parent55901d15b6f816af5bff9efd55b6400121dbc04a
staging: comedi: amplc_pc236: split into ISA, PCI and common module

The "amplc_pc236" driver currently handles both ISA and PCI devices and
uses a small amount of conditional compilation depending which are
enabled.

Move most of the functionality into a new module, "amplc_pc236_common",
and split off support for PCI devices into a new module, "amplc_pci236".
Retain support for ISA devices in the existing module, "amplc_pc236".

Since the `detach` handler (`pc236_detach()`) in the existing module
"amplc_pc236" now only needs to handle ISA devices and only calls
`comedi_legacy_detach()`, just use `comedi_legacy_detach()` directly as
the `detach` handler in `struct comedi_driver amplc_pc236_driver`.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/Kconfig
drivers/staging/comedi/drivers/Makefile
drivers/staging/comedi/drivers/amplc_pc236.c
drivers/staging/comedi/drivers/amplc_pc236.h [new file with mode: 0644]
drivers/staging/comedi/drivers/amplc_pc236_common.c [new file with mode: 0644]
drivers/staging/comedi/drivers/amplc_pci236.c [new file with mode: 0644]