aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/lmc
diff options
context:
space:
mode:
authorJustin Hibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
committerJustin Hibbits <jhibbits@FreeBSD.org>2016-02-19 03:37:56 +0000
commit43cd61606b6bfae52bb09856277751103bfa28fd (patch)
treeb91ec9765a2b284626335ef2c2e8df6e16a2c19f /sys/dev/lmc
parent277db305768ad6765ed735ced43360000c282ed6 (diff)
Notes
Diffstat (limited to 'sys/dev/lmc')
-rw-r--r--sys/dev/lmc/if_lmc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/lmc/if_lmc.c b/sys/dev/lmc/if_lmc.c
index 3ca3d3e280fb..fe22edfe2466 100644
--- a/sys/dev/lmc/if_lmc.c
+++ b/sys/dev/lmc/if_lmc.c
@@ -4510,8 +4510,8 @@ fbsd_attach(device_t dev)
sc->csr_res_id = TLP_CBMA;
sc->csr_res_type = SYS_RES_MEMORY;
# endif
- sc->csr_res = bus_alloc_resource(dev, sc->csr_res_type, &sc->csr_res_id,
- 0, ~0, 1, RF_ACTIVE);
+ sc->csr_res = bus_alloc_resource_any(dev, sc->csr_res_type, &sc->csr_res_id,
+ RF_ACTIVE);
if (sc->csr_res == NULL)
{
printf("%s: bus_alloc_resource(csr) failed.\n", NAME_UNIT);
@@ -4522,8 +4522,8 @@ fbsd_attach(device_t dev)
/* Allocate PCI interrupt resources for the card. */
sc->irq_res_id = 0;
- sc->irq_res = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->irq_res_id,
- 0, ~0, 1, RF_ACTIVE | RF_SHAREABLE);
+ sc->irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_res_id,
+ RF_ACTIVE | RF_SHAREABLE);
if (sc->irq_res == NULL)
{
printf("%s: bus_alloc_resource(irq) failed.\n", NAME_UNIT);