diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c index e4e9b455794a..b69f0e990168 100644 --- a/sys/pccard/pcic.c +++ b/sys/pccard/pcic.c @@ -708,7 +708,11 @@ pcic_setup_intr(device_t dev, device_t child, struct resource *irq, struct pccard_devinfo *devi = device_get_ivars(child); int err; +#if __FreeBSD_version >= 500000 if (sc->csc_route == pci_parallel && (flags & INTR_FAST)) +#else + if (sc->csc_route == pci_parallel && (flags & INTR_TYPE_FAST)) +#endif return (EINVAL); if (((1 << rman_get_start(irq)) & PCIC_INT_MASK_ALLOWED) == 0) { @@ -852,4 +856,3 @@ pcic_do_stat_delta(struct pcic_slot *sp) else pccard_event(sp->slt, card_inserted); } -