From 7e8c3cecdf7578fa3e4047d339c98514d4b618f7 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 2 Feb 2002 02:05:44 +0000 Subject: [PATCH] Fixed breakage of interrupt setup in previous commit. It used an uninitialized variable in the !CY_PCI_FASTINTR case (*blush*). --- sys/dev/cy/cy_pci.c | 2 ++ sys/pci/cy_pci.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/sys/dev/cy/cy_pci.c b/sys/dev/cy/cy_pci.c index 0cda3bbf146..70af94ec9d9 100644 --- a/sys/dev/cy/cy_pci.c +++ b/sys/dev/cy/cy_pci.c @@ -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, diff --git a/sys/pci/cy_pci.c b/sys/pci/cy_pci.c index 0cda3bbf146..70af94ec9d9 100644 --- a/sys/pci/cy_pci.c +++ b/sys/pci/cy_pci.c @@ -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,