summaryrefslogtreecommitdiffstats
path: root/sys/powerpc
diff options
context:
space:
mode:
authorjhibbits <jhibbits@FreeBSD.org>2016-01-03 15:35:01 +0000
committerjhibbits <jhibbits@FreeBSD.org>2016-01-03 15:35:01 +0000
commit765cefec5270ca5c8cbc05f62cc2d0c2aeb1a7cb (patch)
tree0354fd3692b11cd60549d2d76344d28d22388101 /sys/powerpc
parentf77e82d7d2528fbb0af076dc2dd86c2052a9cecc (diff)
downloadFreeBSD-src-765cefec5270ca5c8cbc05f62cc2d0c2aeb1a7cb.zip
FreeBSD-src-765cefec5270ca5c8cbc05f62cc2d0c2aeb1a7cb.tar.gz
Initialize the rid for input.
Left uninitialized, random rid causes the IRQ setup to fail, and the PCI device to not be attached.
Diffstat (limited to 'sys/powerpc')
-rw-r--r--sys/powerpc/mpc85xx/pci_mpc85xx.c1
1 files changed, 1 insertions, 0 deletions
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) {
OpenPOWER on IntegriCloud