exca->pccarddev should always be non-null now. Only call it when the

device is actually attached.
This commit is contained in:
Warner Losh 2007-02-24 15:56:06 +00:00
parent c55e033cca
commit e2ae5821fe

View file

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