Initialize the rid for input.

Left uninitialized, random rid causes the IRQ setup to fail, and the PCI device
to not be attached.
This commit is contained in:
Justin Hibbits 2016-01-03 15:35:01 +00:00
parent 7d3aadc2c1
commit e1741da38a

View File

@ -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) {