diff options
| author | Philip Paeps <philip@FreeBSD.org> | 2019-12-20 05:15:03 +0000 |
|---|---|---|
| committer | Philip Paeps <philip@FreeBSD.org> | 2019-12-20 05:15:03 +0000 |
| commit | 15c023175fc7635d25b220da33dd9682f1e8ddbd (patch) | |
| tree | 0d26b26db893f5bb58ebd57f6fbbdbbe86eb2d64 | |
| parent | 1b6dd6d772cac39d314665609e54329c08da4e77 (diff) | |
Notes
| -rw-r--r-- | sys/dev/iicbus/iicoc_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/iicbus/iicoc_pci.c b/sys/dev/iicbus/iicoc_pci.c index 9f5de1d5062dc..7a10664394040 100644 --- a/sys/dev/iicbus/iicoc_pci.c +++ b/sys/dev/iicbus/iicoc_pci.c @@ -55,7 +55,7 @@ iicoc_detach(device_t dev) sc = device_get_softc(dev); device_delete_children(dev); bus_generic_detach(dev); - bus_release_resource(dev, SYS_RES_MEMORY, sc->mem_rid, &sc->mem_res); + bus_release_resource(dev, SYS_RES_MEMORY, sc->mem_rid, sc->mem_res); mtx_destroy(&sc->sc_mtx); return (0); @@ -89,7 +89,7 @@ iicoc_attach(device_t dev) if (sc->iicbus == NULL) { device_printf(dev, "Could not allocate iicbus instance.\n"); bus_release_resource(dev, SYS_RES_MEMORY, sc->mem_rid, - &sc->mem_res); + sc->mem_res); mtx_destroy(&sc->sc_mtx); return (-1); } |
