diff options
| author | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
|---|---|---|
| committer | Justin Hibbits <jhibbits@FreeBSD.org> | 2016-02-27 03:38:01 +0000 |
| commit | c47476d7e6801deffc8b3c057d0fbf7d2335a0c2 (patch) | |
| tree | bc27bca5a9b117f27964de1fbd3efe2e2ec151d3 /sys/dev/scc | |
| parent | ac6c1372f4ebb24615370e358640100e663f6746 (diff) | |
Notes
Diffstat (limited to 'sys/dev/scc')
| -rw-r--r-- | sys/dev/scc/scc_core.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/scc/scc_core.c b/sys/dev/scc/scc_core.c index 6b0558a95fe9..905fc64ea153 100644 --- a/sys/dev/scc/scc_core.c +++ b/sys/dev/scc/scc_core.c @@ -129,8 +129,8 @@ scc_bfe_attach(device_t dev, u_int ipc) * Re-allocate. We expect that the softc contains the information * collected by scc_bfe_probe() intact. */ - sc->sc_rres = bus_alloc_resource(dev, sc->sc_rtype, &sc->sc_rrid, - 0, ~0, cl->cl_channels * size, RF_ACTIVE); + sc->sc_rres = bus_alloc_resource_anywhere(dev, sc->sc_rtype, + &sc->sc_rrid, cl->cl_channels * size, RF_ACTIVE); if (sc->sc_rres == NULL) return (ENXIO); sc->sc_bas.bsh = rman_get_bushandle(sc->sc_rres); @@ -378,13 +378,13 @@ scc_bfe_probe(device_t dev, u_int regshft, u_int rclk, u_int rid) */ sc->sc_rrid = rid; sc->sc_rtype = SYS_RES_MEMORY; - sc->sc_rres = bus_alloc_resource(dev, sc->sc_rtype, &sc->sc_rrid, - 0, ~0, cl->cl_channels * size, RF_ACTIVE); + sc->sc_rres = bus_alloc_resource_anywhere(dev, sc->sc_rtype, + &sc->sc_rrid, cl->cl_channels * size, RF_ACTIVE); if (sc->sc_rres == NULL) { sc->sc_rrid = rid; sc->sc_rtype = SYS_RES_IOPORT; - sc->sc_rres = bus_alloc_resource(dev, sc->sc_rtype, - &sc->sc_rrid, 0, ~0, cl->cl_channels * size, RF_ACTIVE); + sc->sc_rres = bus_alloc_resource_anywhere(dev, sc->sc_rtype, + &sc->sc_rrid, cl->cl_channels * size, RF_ACTIVE); if (sc->sc_rres == NULL) return (ENXIO); } |
