From 765cefec5270ca5c8cbc05f62cc2d0c2aeb1a7cb Mon Sep 17 00:00:00 2001 From: jhibbits Date: Sun, 3 Jan 2016 15:35:01 +0000 Subject: Initialize the rid for input. Left uninitialized, random rid causes the IRQ setup to fail, and the PCI device to not be attached. --- sys/powerpc/mpc85xx/pci_mpc85xx.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/powerpc') diff --git a/sys/powerpc/mpc85xx/pci_mpc85xx.c b/sys/powerpc/mpc85xx/pci_mpc85xx.c index 95e5a74..4397ac0 100644 --- a/sys/powerpc/mpc85xx/pci_mpc85xx.c +++ b/sys/powerpc/mpc85xx/pci_mpc85xx.c @@ -363,6 +363,7 @@ fsl_pcib_attach(device_t dev) } /* Allocate irq */ + rid = 0; sc->sc_irq_res = bus_alloc_resource_any(dev, SYS_RES_IRQ, &rid, RF_ACTIVE | RF_SHAREABLE); if (sc->sc_irq_res == NULL) { -- cgit v1.1