From 518792d85ca4cbfcd5873a4042e3d67e4ba0d05a Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 4 Nov 2002 03:01:56 +0000 Subject: Detach the pccard bus children when we eject a 16-bit card, not the 32-bit ones. This was introduced in the last commit. --- sys/dev/pccbb/pccbb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/pccbb/pccbb.c b/sys/dev/pccbb/pccbb.c index 461c39d22e890..e96105a8555cc 100644 --- a/sys/dev/pccbb/pccbb.c +++ b/sys/dev/pccbb/pccbb.c @@ -993,7 +993,7 @@ static void cbb_removal(struct cbb_softc *sc) { if (sc->flags & CBB_16BIT_CARD && sc->pccarddev != NULL) - CARD_DETACH_CARD(sc->cbdev); + CARD_DETACH_CARD(sc->pccarddev); else if ((!(sc->flags & CBB_16BIT_CARD)) && sc->cbdev != NULL) CARD_DETACH_CARD(sc->cbdev); cbb_destroy_res(sc); -- cgit v1.3