MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bcm_bmips_detach

Function bcm_bmips_detach

freebsd/mips/broadcom/bcm_bmips.c:164–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static int
165bcm_bmips_detach(device_t dev)
166{
167 struct bcm_bmips_softc *sc;
168 int error;
169
170 sc = device_get_softc(dev);
171
172 if ((error = bcm_mips_detach(dev)))
173 return (error);
174
175 bus_release_resource(dev, SYS_RES_MEMORY, sc->mem_rid, sc->mem);
176 bus_release_resource(dev, SYS_RES_MEMORY, sc->cfg_rid, sc->cfg);
177
178 return (0);
179}
180
181/* PIC_DISABLE_INTR() */
182static void

Callers

nothing calls this directly

Calls 3

device_get_softcFunction · 0.85
bcm_mips_detachFunction · 0.85
bus_release_resourceFunction · 0.85

Tested by

no test coverage detected