iicoc: fix the build on PCI machines

Pointy hat to:   philip
This commit is contained in:
Philip Paeps 2019-12-20 05:15:03 +00:00
parent 1b6dd6d772
commit 15c023175f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=355926

View File

@ -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);
}