Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Initialize sc_dev



details:   https://anonhg.NetBSD.org/src/rev/02c73559b836
branches:  trunk
changeset: 785824:02c73559b836
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Mar 31 11:12:30 2013 +0000

description:
Initialize sc_dev

diffstat:

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

diffs (26 lines):

diff -r 7c5189e485e8 -r 02c73559b836 sys/dev/pci/if_athn_pci.c
--- a/sys/dev/pci/if_athn_pci.c Sun Mar 31 10:51:38 2013 +0000
+++ b/sys/dev/pci/if_athn_pci.c Sun Mar 31 11:12:30 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_athn_pci.c,v 1.2 2013/03/31 10:51:38 martin Exp $   */
+/*     $NetBSD: if_athn_pci.c,v 1.3 2013/03/31 11:12:30 martin Exp $   */
 /*     $OpenBSD: if_athn_pci.c,v 1.11 2011/01/08 10:02:32 damien Exp $ */
 
 /*-
@@ -22,7 +22,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.2 2013/03/31 10:51:38 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_athn_pci.c,v 1.3 2013/03/31 11:12:30 martin Exp $");
 
 #include "opt_inet.h"
 
@@ -131,6 +131,7 @@
        pci_product_id_t subsysid;
        int error;
 
+       sc->sc_dev = self;
        sc->sc_dmat = pa->pa_dmat;
        psc->psc_pc = pa->pa_pc;
        psc->psc_tag = pa->pa_tag;



Home | Main Index | Thread Index | Old Index