Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jan 2016 15:35:01 +0000 (UTC)
From:      Justin Hibbits <jhibbits@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r293107 - head/sys/powerpc/mpc85xx
Message-ID:  <201601031535.u03FZ188044358@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601031535.u03FZ188044358>