From f95902db101fe3590602a3288624a333ca1c4e2e Mon Sep 17 00:00:00 2001 From: bde Date: Sat, 2 Feb 2002 02:05:44 +0000 Subject: 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 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/cy') diff --git a/sys/dev/cy/cy_pci.c b/sys/dev/cy/cy_pci.c index 0cda3bb..70af94e 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, -- cgit v1.1