devpriv->pci_dev->base_address[DAC_BADRINDEX] &
PCI_BASE_ADDRESS_IO_MASK;
#else
- pci_enable_device(devpriv->pci_dev);
+ if(pci_enable_device(devpriv->pci_dev))
+ return -EIO;
digitalio =
devpriv->pci_dev->resource[DIGITALIO_BADRINDEX].start &
PCI_BASE_ADDRESS_IO_MASK;
pci_iobase = pdev->base_address[1] & PCI_BASE_ADDRESS_IO_MASK;
iobase = pdev->base_address[2] & PCI_BASE_ADDRESS_IO_MASK;
#else
- pci_enable_device(pdev);
+ if(pci_enable_device(pdev))
+ return -EIO;
pci_iobase = pdev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK;
iobase = pdev->resource[2].start & PCI_BASE_ADDRESS_IO_MASK;
#endif