diff options
Diffstat (limited to 'sys/pci/if_ti.c')
-rw-r--r-- | sys/pci/if_ti.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c index 46f64ae..af14959 100644 --- a/sys/pci/if_ti.c +++ b/sys/pci/if_ti.c @@ -2065,8 +2065,8 @@ ti_attach(dev) pci_enable_busmaster(dev); rid = TI_PCI_LOMEM; - sc->ti_res = bus_alloc_resource(dev, SYS_RES_MEMORY, &rid, - 0, ~0, 1, RF_ACTIVE|PCI_RF_DENSE); + sc->ti_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid, + RF_ACTIVE|PCI_RF_DENSE); if (sc->ti_res == NULL) { printf ("ti%d: couldn't map memory\n", unit); @@ -2081,7 +2081,7 @@ ti_attach(dev) /* Allocate interrupt */ rid = 0; - sc->ti_irq = bus_alloc_resource(dev, SYS_RES_IRQ, &rid, 0, ~0, 1, + sc->ti_irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_SHAREABLE | RF_ACTIVE); if (sc->ti_irq == NULL) { |