From: David Schleef Date: Wed, 5 Sep 2001 23:34:03 +0000 (+0000) Subject: Added pci_enable_device() X-Git-Tag: r0_7_61~122 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5e2e50aa7aedc1f57eb39dc0f180e5901481f332;p=comedi.git Added pci_enable_device() --- diff --git a/comedi/drivers/dt3000.c b/comedi/drivers/dt3000.c index 89ddbcd2..7147ab87 100644 --- a/comedi/drivers/dt3000.c +++ b/comedi/drivers/dt3000.c @@ -624,6 +624,10 @@ static int setup_pci(comedi_device *dev) { unsigned long offset; u32 addr; + int ret; + + ret = pci_enable_device(devpriv->pci_dev); + if(ret<0)return ret; #if LINUX_VERSION_CODE < 0x020300 addr=devpriv->pci_dev->base_address[0]; diff --git a/comedi/drivers/rtd520.c b/comedi/drivers/rtd520.c index bbfa2aee..4f381fb5 100644 --- a/comedi/drivers/rtd520.c +++ b/comedi/drivers/rtd520.c @@ -611,6 +611,10 @@ static int rtd_attach ( */ dev->board_name = thisboard->name; + if((ret=pci_enable_device(dev))<0){ + return ret; + } + /* * Initialize base addresses */