We need to initialize the PCI chipset and device tags in the softc for trunk
authorjakllsch <jakllsch@NetBSD.org>
Sat, 20 Aug 2011 19:06:57 +0000
branchtrunk
changeset 204275 202a17470e77
parent 204274 4cc98b36a482
child 204276 4629959957af
We need to initialize the PCI chipset and device tags in the softc for the suspend and resume handlers.
sys/arch/x86/pci/pchb.c
--- a/sys/arch/x86/pci/pchb.c	Sat Aug 20 16:10:02 2011 +0000
+++ b/sys/arch/x86/pci/pchb.c	Sat Aug 20 19:06:57 2011 +0000
@@ -1,4 +1,4 @@
-/*	$NetBSD: pchb.c,v 1.27 2011/08/18 20:55:20 jakllsch Exp $ */
+/*	$NetBSD: pchb.c,v 1.28 2011/08/20 19:06:57 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.27 2011/08/18 20:55:20 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.28 2011/08/20 19:06:57 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -168,6 +168,8 @@
 	attachflags = pa->pa_flags;
 
 	sc->sc_dev = self;
+	sc->sc_pc = pa->pa_pc;
+	sc->sc_tag = pa->pa_tag;
 
 	/*
 	 * Print out a description, and configure certain chipsets which