示例#1
0
文件: t4_iov.c 项目: Hooman3/freebsd
static int
t4iov_detach(device_t dev)
{
	struct t4iov_softc *sc;

	sc = device_get_softc(dev);
	if (sc->sc_attached)
		return (t4iov_detach_child(dev));
	return (0);
}
示例#2
0
static int
t4iov_detach(device_t dev)
{
	struct t4iov_softc *sc;
	int error;

	sc = device_get_softc(dev);
	if (sc->sc_attached) {
		error = t4iov_detach_child(dev);
		if (error)
			return (error);
	}
	return (0);
}