diff options
author | imp <imp@FreeBSD.org> | 2007-02-24 15:56:06 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2007-02-24 15:56:06 +0000 |
commit | d9c67547e5e693ad8da5b127031a0d06d9c61d7a (patch) | |
tree | 6ccb3a8cd493afc064720967f96d43ea72e1481f | |
parent | e911872985fca2c7033c262f4dfe2d75624b6a3d (diff) | |
download | FreeBSD-src-d9c67547e5e693ad8da5b127031a0d06d9c61d7a.zip FreeBSD-src-d9c67547e5e693ad8da5b127031a0d06d9c61d7a.tar.gz |
exca->pccarddev should always be non-null now. Only call it when the
device is actually attached.
-rw-r--r-- | sys/dev/exca/exca.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/exca/exca.c b/sys/dev/exca/exca.c index a46ba47..a7ff956 100644 --- a/sys/dev/exca/exca.c +++ b/sys/dev/exca/exca.c @@ -766,7 +766,7 @@ exca_probe_slots(device_t dev, struct exca_softc *exca, bus_space_tag_t iot, void exca_insert(struct exca_softc *exca) { - if (exca->pccarddev != NULL) { + if (device_is_attached(exca->pccarddev)) { if (CARD_ATTACH_CARD(exca->pccarddev) != 0) device_printf(exca->dev, "PC Card card activation failed\n"); |