Detach the pccard bus children when we eject a 16-bit card, not the

32-bit ones.  This was introduced in the last commit.
This commit is contained in:
Warner Losh 2002-11-04 03:01:56 +00:00
parent 372360693d
commit 518792d85c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106395

View File

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