Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Initialise sc->sc_dev, otherwise unnamed interfa...
details: https://anonhg.NetBSD.org/src/rev/83922bcc96f8
branches: trunk
changeset: 933788:83922bcc96f8
user: sevan <sevan%NetBSD.org@localhost>
date: Sat May 30 21:39:49 2020 +0000
description:
Initialise sc->sc_dev, otherwise unnamed interfaces show up and things go
downhill from there.
diffstat:
sys/dev/pci/if_rge.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r d4d55d0429f9 -r 83922bcc96f8 sys/dev/pci/if_rge.c
--- a/sys/dev/pci/if_rge.c Sat May 30 21:00:31 2020 +0000
+++ b/sys/dev/pci/if_rge.c Sat May 30 21:39:49 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_rge.c,v 1.11 2020/05/20 20:18:37 sevan Exp $ */
+/* $NetBSD: if_rge.c,v 1.12 2020/05/30 21:39:49 sevan Exp $ */
/* $OpenBSD: if_rge.c,v 1.3 2020/03/27 15:15:24 krw Exp $ */
/*
@@ -18,7 +18,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.11 2020/05/20 20:18:37 sevan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rge.c,v 1.12 2020/05/30 21:39:49 sevan Exp $");
/* #include "vlan.h" Sevan */
@@ -203,6 +203,8 @@
pci_set_powerstate(pa->pa_pc, pa->pa_tag, PCI_PMCSR_STATE_D0);
+ sc->sc_dev = self;
+
/*
* Map control/status registers.
*/
Home |
Main Index |
Thread Index |
Old Index