svn commit: r293107 - head/sys/powerpc/mpc85xx

Justin Hibbits jhibbits at FreeBSD.org
Sun Jan 3 15:35:02 UTC 2016


Author: jhibbits
Date: Sun Jan  3 15:35:01 2016
New Revision: 293107
URL: https://svnweb.freebsd.org/changeset/base/293107

Log:
  Initialize the rid for input.
  
  Left uninitialized, random rid causes the IRQ setup to fail, and the PCI device
  to not be attached.

Modified:
  head/sys/powerpc/mpc85xx/pci_mpc85xx.c

Modified: head/sys/powerpc/mpc85xx/pci_mpc85xx.c
==============================================================================
--- head/sys/powerpc/mpc85xx/pci_mpc85xx.c	Sun Jan  3 15:24:57 2016	(r293106)
+++ head/sys/powerpc/mpc85xx/pci_mpc85xx.c	Sun Jan  3 15:35:01 2016	(r293107)
@@ -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) {


More information about the svn-src-all mailing list