summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Zammit <damien@zamaudio.com>2020-05-08 10:22:34 +1000
committerDamien Zammit <damien@zamaudio.com>2020-08-27 18:01:56 +1000
commit9effa77676207d547dc869ecb8c342869e14ef70 (patch)
tree4065023ee4dd59dc29e28246ff9b755534b0182e
parentb37ffbd94b4a270e62b752bdced882ce12b7610c (diff)
x86: Remove mapping of regions during probe - otherwise remapping later fails
-rw-r--r--src/x86_pci.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/x86_pci.c b/src/x86_pci.c
index 9827fff..14524d8 100644
--- a/src/x86_pci.c
+++ b/src/x86_pci.c
@@ -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;
}