From 5e2e50aa7aedc1f57eb39dc0f180e5901481f332 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 5 Sep 2001 23:34:03 +0000 Subject: [PATCH] Added pci_enable_device() --- comedi/drivers/dt3000.c | 4 ++++ comedi/drivers/rtd520.c | 4 ++++ 2 files changed, 8 insertions(+) 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 */ -- 2.26.2