Fixed breakage of interrupt setup in previous commit. It used an

uninitialized variable in the !CY_PCI_FASTINTR case (*blush*).
This commit is contained in:
Bruce Evans 2002-02-02 02:05:44 +00:00
parent 64011154e5
commit 7e8c3cecdf
2 changed files with 4 additions and 0 deletions

View File

@ -144,6 +144,8 @@ cy_pci_attach(dev)
#ifdef CY_PCI_FASTINTR
irq_setup = bus_setup_intr(dev, irq_res, INTR_TYPE_TTY | INTR_FAST,
(driver_intr_t *)cyintr, (void *)adapter, &irq_cookie);
#else
irq_setup = ENXIO;
#endif
if (irq_setup != 0)
irq_setup = bus_setup_intr(dev, irq_res, INTR_TYPE_TTY,

View File

@ -144,6 +144,8 @@ cy_pci_attach(dev)
#ifdef CY_PCI_FASTINTR
irq_setup = bus_setup_intr(dev, irq_res, INTR_TYPE_TTY | INTR_FAST,
(driver_intr_t *)cyintr, (void *)adapter, &irq_cookie);
#else
irq_setup = ENXIO;
#endif
if (irq_setup != 0)
irq_setup = bus_setup_intr(dev, irq_res, INTR_TYPE_TTY,