From 2b1b60cf2557ed7df4065bd5c08db891c7cea7f0 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 5 Sep 2001 23:39:15 +0000 Subject: [PATCH] Added MODULE_DEVICE_TABLE() and pci_enable_device() --- comedi/drivers/daqboard2000.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/comedi/drivers/daqboard2000.c b/comedi/drivers/daqboard2000.c index 4250cd77..e2ff78a5 100644 --- a/comedi/drivers/daqboard2000.c +++ b/comedi/drivers/daqboard2000.c @@ -107,6 +107,7 @@ #include #include #include +#include #include #include #include @@ -309,6 +310,12 @@ static boardtype boardtypes[]={ #define n_boardtypes (sizeof(boardtypes)/sizeof(boardtype)) #define this_board ((boardtype *)dev->board_ptr) +static struct pci_device_id daqboard2000_pci_table[] __devinitdata = { + { 0x1616, 0x0409, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, + { 0 } +}; +MODULE_DEVICE_TABLE(pci, daqboard2000_pci_table); + typedef struct { enum { card_daqboard_2000 @@ -688,6 +695,10 @@ static int daqboard2000_attach(comedi_device *dev, comedi_devconfig *it) goto out; } + if((result = pci_enable_device(card))<0){ + goto out; + } + if (card->hdr_type == PCI_HEADER_TYPE_NORMAL) { u32 id; int i; -- 2.26.2