if (res->flags & IORESOURCE_IO) root = &ioport_resource; if (res->flags & IORESOURCE_MEM) root = &iomem_resource; 
root = pcibios_select_root(dev, res); 
pci_claim_resource(struct pci_dev *dev, int resource){	struct resource *res = &dev->resource[resource];	struct resource *root = NULL;	char *dtype = resource < PCI_BRIDGE_RESOURCES ? "device" : "bridge";	int err;	if (res->flags & IORESOURCE_IO)		root = &ioport_resource;	if (res->flags & IORESOURCE_MEM)		root = &iomem_resource;	err = -EINVAL;	if (root != NULL)		err = insert_resource(root, res);	if (err) {		printk(KERN_ERR "PCI: %s region %d of %s %s [%lx:%lx]\n",		       root ? "Address space collision on" :			      "No parent found for",		       resource, dtype, pci_name(dev), res->start, res->end);	}	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/085ae41f66657a9655ce832b0a61832a06f0e1dc/setup-res.c/buggy/drivers/pci/setup-res.c