summaryrefslogtreecommitdiffstats
path: root/sys/dev/exca
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2007-02-24 15:56:06 +0000
committerimp <imp@FreeBSD.org>2007-02-24 15:56:06 +0000
commitd9c67547e5e693ad8da5b127031a0d06d9c61d7a (patch)
tree6ccb3a8cd493afc064720967f96d43ea72e1481f /sys/dev/exca
parente911872985fca2c7033c262f4dfe2d75624b6a3d (diff)
downloadFreeBSD-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.
Diffstat (limited to 'sys/dev/exca')
-rw-r--r--sys/dev/exca/exca.c2
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");
OpenPOWER on IntegriCloud