diff options
author | H Hartley Sweeten <hartleys@visionengravers.com> | 2012-10-29 16:52:20 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-30 10:47:33 -0700 |
commit | 317285d71acccbda2fbab7e53d6b33c52a151a32 (patch) | |
tree | 409136b8d0b1a427ec00ff3abebeba7a50b3747b /drivers/staging/comedi/drivers/addi_apci_3501.c | |
parent | bf6a1578c10a4f3ef94a3c744267f18f9c3642bd (diff) | |
download | linux-rt-317285d71acccbda2fbab7e53d6b33c52a151a32.tar.gz |
staging: comedi: addi-data: remove the MODULE_DEVICE_TABLE #ifdef'ery
Move the MODULE_DEVICE_TABLE for each addi-data driver from addi_common.c
to the individual driver files. This removes the need #ifdef'ery.
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>
Diffstat (limited to 'drivers/staging/comedi/drivers/addi_apci_3501.c')
-rw-r--r-- | drivers/staging/comedi/drivers/addi_apci_3501.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/staging/comedi/drivers/addi_apci_3501.c b/drivers/staging/comedi/drivers/addi_apci_3501.c index 8fb5b50de201..a1c6f0153829 100644 --- a/drivers/staging/comedi/drivers/addi_apci_3501.c +++ b/drivers/staging/comedi/drivers/addi_apci_3501.c @@ -10,6 +10,13 @@ #include "addi-data/addi_eeprom.c" #include "addi-data/hwdrv_apci3501.c" + +static DEFINE_PCI_DEVICE_TABLE(addi_apci_tbl) = { + { PCI_DEVICE(PCI_VENDOR_ID_ADDIDATA, 0x3001) }, + { 0 } +}; +MODULE_DEVICE_TABLE(pci, addi_apci_tbl); + #include "addi-data/addi_common.c" MODULE_AUTHOR("Comedi http://www.comedi.org"); |