summaryrefslogtreecommitdiffstats
path: root/sys/pci/intpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/intpm.c')
-rw-r--r--sys/pci/intpm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/pci/intpm.c b/sys/pci/intpm.c
index defc2c7..ef30a52 100644
--- a/sys/pci/intpm.c
+++ b/sys/pci/intpm.c
@@ -664,8 +664,7 @@ intpm_attach(device_t dev)
}
rid=PCI_BASE_ADDR_SMB;
- res=bus_alloc_resource(dev,SYS_RES_IOPORT,&rid,
- 0,~0,1,RF_ACTIVE);
+ res=bus_alloc_resource_any(dev,SYS_RES_IOPORT,&rid,RF_ACTIVE);
if(res==NULL){
device_printf(dev,"Could not allocate Bus space\n");
return ENXIO;
OpenPOWER on IntegriCloud