/* Adjust the device resources from bus-centric to Linux-centric.  */
static void __devinit pdev_fixup_device_resources(struct pci_sys_data *root, struct pci_dev *dev)
/* Adjust the device resources from bus-centric to Linux-centric.  */
static void __devinit pdev_fixup_device_resources(struct pci_sys_data *root, struct pci_dev *dev)
{
	resource_size_t offset;
	int i;
	for (i = 0; i < PCI_NUM_RESOURCES; i++) {
		if (dev->resource[i].start == 0)
			continue;
		if (dev->resource[i].flags & IORESOURCE_MEM)
			offset = root->mem_offset;
		else
			offset = root->io_offset;
		dev->resource[i].start += offset;
		dev->resource[i].end   += offset;
	}
}