summaryrefslogtreecommitdiffstats
path: root/sys/pci/amdpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/amdpm.c')
-rw-r--r--sys/pci/amdpm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/pci/amdpm.c b/sys/pci/amdpm.c
index c72ad70..afed542 100644
--- a/sys/pci/amdpm.c
+++ b/sys/pci/amdpm.c
@@ -198,7 +198,8 @@ amdpm_attach(device_t dev)
amdpm_sc->rid = AMDPCI_PMBASE;
else
amdpm_sc->rid = NFPCI_PMBASE;
- amdpm_sc->res = bus_alloc_resource(dev, SYS_RES_IOPORT, &amdpm_sc->rid, 0, ~0, 1, RF_ACTIVE);
+ amdpm_sc->res = bus_alloc_resource_any(dev, SYS_RES_IOPORT,
+ &amdpm_sc->rid, RF_ACTIVE);
if (amdpm_sc->res == NULL) {
device_printf(dev, "could not map i/o space\n");
OpenPOWER on IntegriCloud