extern inline int pci_request_regions(struct pci_dev *dev, char *name)
{
const int max_num_base_addr = 6;
+ static const int fake_length = 1;
int i;
int retval = 0;
{
if(dev->base_address[i] & PCI_BASE_ADDRESS_SPACE_IO)
retval = check_region(pci_resource_start(dev, i),
- pci_resource_len(dev, i));
+ fake_length);
if( retval )
break;
}
{
if(dev->base_address[i] & PCI_BASE_ADDRESS_SPACE_IO)
request_region(pci_resource_start(dev, i),
- pci_resource_len(dev, i), name);
+ fake_length);
}
}
extern inline void pci_release_regions(struct pci_dev *dev)
{
- const int max_num_base_addr = 6;
+ static const int max_num_base_addr = 6;
+ static const int fake_length = 1;
int i;
for(i = 0; i < max_num_base_addr; i++)
{
if(dev->base_address[i] & PCI_BASE_ADDRESS_SPACE_IO)
release_region(pci_resource_start(dev, i),
- pci_resource_len(dev, i));
+ fake_length);
}
}
}