pci_host_generic, acpi_resource: drop unneeded code
Now that we are handling PCI resources in pci_host_generic_acpi.c, we don't need these change (made by r336129) Reviewed by: andrew Differential Revision: https://reviews.freebsd.org/D17792
This commit is contained in:
parent
65f57cddff
commit
bd91f059fb
@ -602,10 +602,6 @@ acpi_res_set_memory(device_t dev, void *context, uint64_t base,
|
||||
|
||||
if (cp == NULL)
|
||||
return;
|
||||
|
||||
while (bus_get_resource_start(dev, SYS_RES_MEMORY, cp->ar_nmem))
|
||||
cp->ar_nmem++;
|
||||
|
||||
bus_set_resource(dev, SYS_RES_MEMORY, cp->ar_nmem++, base, length);
|
||||
}
|
||||
|
||||
|
@ -107,7 +107,7 @@ pci_host_generic_core_attach(device_t dev)
|
||||
return (error);
|
||||
|
||||
rid = 0;
|
||||
sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE | RF_SHAREABLE);
|
||||
sc->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, RF_ACTIVE);
|
||||
if (sc->res == NULL) {
|
||||
device_printf(dev, "could not map memory.\n");
|
||||
return (ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user