int lm_i2c_detach(struct device *self, int flags) { struct lm_i2c_softc *sc = (struct lm_i2c_softc *)self; return lm_detach(&sc->sc_lmsc); }
int lm_isa_detach(device_t self, int flags) { struct lm_isa_softc *sc = device_private(self); lm_detach(&sc->lmsc); bus_space_unmap(sc->lm_iot, sc->lm_ioh, 8); return 0; }