Commit 9effa776 authored by Damien Zammit's avatar Damien Zammit
Browse files

x86: Remove mapping of regions during probe - otherwise remapping later fails

parent b37ffbd9
......@@ -631,9 +631,6 @@ pci_device_x86_region_probe (struct pci_device *dev, int reg_num)
if (err)
return err;
}
/* Clear the map pointer */
dev->regions[reg_num].memory = 0;
}
else if (dev->regions[reg_num].size > 0)
{
......@@ -650,15 +647,11 @@ pci_device_x86_region_probe (struct pci_device *dev, int reg_num)
if (err)
return err;
}
/* Map the region in our space */
if ( (err = map_dev_mem(&dev->regions[reg_num].memory,
dev->regions[reg_num].base_addr,
dev->regions[reg_num].size,
1)) )
return err;
}
/* Clear the map pointer */
dev->regions[reg_num].memory = 0;
return 0;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment