Added pci_enable_device()
authorDavid Schleef <ds@schleef.org>
Wed, 5 Sep 2001 23:34:03 +0000 (23:34 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 5 Sep 2001 23:34:03 +0000 (23:34 +0000)
comedi/drivers/dt3000.c
comedi/drivers/rtd520.c

index 89ddbcd215b58c3cf37f2e83ea0126d061227a52..7147ab87ba1fd5c827cde89d3b19e6678cca4596 100644 (file)
@@ -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];
index bbfa2aeef94cc117b0268df98c62c696fb1357e2..4f381fb516255f481924436017e94c381686c9c6 100644 (file)
@@ -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
      */