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 obviously missing "sc->sc_dev = self" initia...



details:   https://anonhg.NetBSD.org/src/rev/8de213123084
branches:  trunk
changeset: 805958:8de213123084
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jan 25 07:33:24 2015 +0000

description:
Fix obviously missing "sc->sc_dev = self" initialization.
Might help PR port-i386/49602.

diffstat:

 sys/dev/pci/if_fpa.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 4dfcdee33a97 -r 8de213123084 sys/dev/pci/if_fpa.c
--- a/sys/dev/pci/if_fpa.c      Sun Jan 25 01:32:26 2015 +0000
+++ b/sys/dev/pci/if_fpa.c      Sun Jan 25 07:33:24 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_fpa.c,v 1.59 2014/03/29 19:28:24 christos Exp $     */
+/*     $NetBSD: if_fpa.c,v 1.60 2015/01/25 07:33:24 martin Exp $       */
 
 /*-
  * Copyright (c) 1995, 1996 Matt Thomas <matt%3am-software.com@localhost>
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_fpa.c,v 1.59 2014/03/29 19:28:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_fpa.c,v 1.60 2015/01/25 07:33:24 martin Exp $");
 
 #ifdef __NetBSD__
 #include "opt_inet.h"
@@ -410,6 +410,8 @@
 
     aprint_naive(": FDDI controller\n");
 
+    sc->sc_dev = self;
+
     data = pci_conf_read(pa->pa_pc, pa->pa_tag, PCI_CFLT);
     if ((data & 0xFF00) < (DEFPA_LATENCY << 8)) {
        data &= ~0xFF00;



Home | Main Index | Thread Index | Old Index