From: David Schleef Date: Wed, 5 Sep 2001 23:39:15 +0000 (+0000) Subject: Added MODULE_DEVICE_TABLE() and pci_enable_device() X-Git-Tag: r0_7_61~115 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2b1b60cf2557ed7df4065bd5c08db891c7cea7f0;p=comedi.git Added MODULE_DEVICE_TABLE() and pci_enable_device() --- 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;