devpriv->pci_dev->base_address[AO_BADRINDEX] &
PCI_BASE_ADDRESS_IO_MASK;
#else
+ pci_enable_device(pci_dev);
s5933_config =
devpriv->pci_dev->resource[S5933_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_iobase = pdev->resource[1].start;
- iobase = pdev->resource[2].start;
+ pci_enable_device(pdev);
+ pci_iobase = pdev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK;
+ iobase = pdev->resource[2].start & PCI_BASE_ADDRESS_IO_MASK;
#endif
// reserve io ports for 9052 pci chip