Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/nubus Set sc_dev field of softc.



details:   https://anonhg.NetBSD.org/src/rev/c0dba922ec1f
branches:  trunk
changeset: 813988:c0dba922ec1f
user:      rjs <rjs%NetBSD.org@localhost>
date:      Sun Feb 28 19:39:27 2016 +0000

description:
Set sc_dev field of softc.

Should pullup to 7.

diffstat:

 sys/arch/mac68k/nubus/grf_nubus.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 41b941e5f2b9 -r c0dba922ec1f sys/arch/mac68k/nubus/grf_nubus.c
--- a/sys/arch/mac68k/nubus/grf_nubus.c Sun Feb 28 19:18:41 2016 +0000
+++ b/sys/arch/mac68k/nubus/grf_nubus.c Sun Feb 28 19:39:27 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: grf_nubus.c,v 1.77 2013/10/25 21:42:30 martin Exp $    */
+/*     $NetBSD: grf_nubus.c,v 1.78 2016/02/28 19:39:27 rjs Exp $       */
 
 /*
  * Copyright (c) 1995 Allen Briggs.  All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: grf_nubus.c,v 1.77 2013/10/25 21:42:30 martin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: grf_nubus.c,v 1.78 2016/02/28 19:39:27 rjs Exp $");
 
 #include <sys/param.h>
 
@@ -143,6 +143,7 @@
 
        memcpy(&sc->sc_slot, na->fmt, sizeof(nubus_slot));
 
+       sc->sc_dev = self;
        sc->sc_tag = na->na_tag;
        sc->card_id = na->drhw;
        sc->sc_basepa = (bus_addr_t)NUBUS_SLOT2PA(na->slot);



Home | Main Index | Thread Index | Old Index