summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/sound/pci/cmi.c4
-rw-r--r--sys/dev/sound/pci/maestro.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/sound/pci/cmi.c b/sys/dev/sound/pci/cmi.c
index 196fb69..2ae837a 100644
--- a/sys/dev/sound/pci/cmi.c
+++ b/sys/dev/sound/pci/cmi.c
@@ -850,8 +850,8 @@ cmi_attach(device_t dev)
sc->dev = dev;
sc->regid = PCIR_BAR(0);
- sc->reg = bus_alloc_resource(dev, SYS_RES_IOPORT, &sc->regid,
- 0, BUS_SPACE_UNRESTRICTED, 1, RF_ACTIVE);
+ sc->reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &sc->regid,
+ RF_ACTIVE);
if (!sc->reg) {
device_printf(dev, "cmi_attach: Cannot allocate bus resource\n");
goto bad;
diff --git a/sys/dev/sound/pci/maestro.c b/sys/dev/sound/pci/maestro.c
index 9d329c0..d1b9b5b 100644
--- a/sys/dev/sound/pci/maestro.c
+++ b/sys/dev/sound/pci/maestro.c
@@ -1843,8 +1843,8 @@ agg_attach(device_t dev)
/* Allocate resources. */
if (data & PCIM_CMD_PORTEN)
- reg = bus_alloc_resource(dev, SYS_RES_IOPORT, &regid,
- 0, BUS_SPACE_UNRESTRICTED, 256, RF_ACTIVE);
+ reg = bus_alloc_resource_any(dev, SYS_RES_IOPORT, &regid,
+ RF_ACTIVE);
if (reg != NULL) {
ess->reg = reg;
ess->regid = regid;
@@ -1855,8 +1855,8 @@ agg_attach(device_t dev)
ret = ENXIO;
goto bad;
}
- irq = bus_alloc_resource(dev, SYS_RES_IRQ, &irqid,
- 0, BUS_SPACE_UNRESTRICTED, 1, RF_ACTIVE | RF_SHAREABLE);
+ irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &irqid,
+ RF_ACTIVE | RF_SHAREABLE);
if (irq != NULL) {
ess->irq = irq;
ess->irqid = irqid;
OpenPOWER on IntegriCloud