Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci fix device/softc split: initialize sc->sc_dev.



details:   https://anonhg.NetBSD.org/src/rev/35e7688d1ae8
branches:  trunk
changeset: 783048:35e7688d1ae8
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Dec 02 15:34:36 2012 +0000

description:
fix device/softc split: initialize sc->sc_dev.

diffstat:

 sys/dev/pci/twe.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2dbe00f1407a -r 35e7688d1ae8 sys/dev/pci/twe.c
--- a/sys/dev/pci/twe.c Sun Dec 02 13:05:14 2012 +0000
+++ b/sys/dev/pci/twe.c Sun Dec 02 15:34:36 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: twe.c,v 1.97 2012/10/27 17:18:35 chs Exp $     */
+/*     $NetBSD: twe.c,v 1.98 2012/12/02 15:34:36 chs Exp $     */
 
 /*-
  * Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -63,7 +63,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.97 2012/10/27 17:18:35 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.98 2012/12/02 15:34:36 chs Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -320,6 +320,7 @@
        struct twe_ccb *ccb;
 
        sc = device_private(self);
+       sc->sc_dev = self;
        pa = aux;
        pc = pa->pa_pc;
        sc->sc_dmat = pa->pa_dmat;



Home | Main Index | Thread Index | Old Index