Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/dev Fix one more device/softc split error:



details:   https://anonhg.NetBSD.org/src/rev/7830d3cd07f6
branches:  trunk
changeset: 783246:7830d3cd07f6
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Dec 12 13:32:37 2012 +0000

description:
Fix one more device/softc split error:
 - set sc->sc_dev properly

diffstat:

 sys/arch/sh3/dev/sci.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 2723fd8f19ce -r 7830d3cd07f6 sys/arch/sh3/dev/sci.c
--- a/sys/arch/sh3/dev/sci.c    Wed Dec 12 13:30:06 2012 +0000
+++ b/sys/arch/sh3/dev/sci.c    Wed Dec 12 13:32:37 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sci.c,v 1.56 2012/10/29 12:51:38 chs Exp $ */
+/* $NetBSD: sci.c,v 1.57 2012/12/12 13:32:37 tsutsui Exp $ */
 
 /*-
  * Copyright (C) 1999 T.Horiuchi and SAITOH Masanobu.  All rights reserved.
@@ -93,7 +93,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sci.c,v 1.56 2012/10/29 12:51:38 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sci.c,v 1.57 2012/12/12 13:32:37 tsutsui Exp $");
 
 #include "opt_kgdb.h"
 #include "opt_sci.h"
@@ -375,6 +375,7 @@
 
        sci_attached = 1;
 
+       sc->sc_dev = self;
        sc->sc_hwflags = 0;     /* XXX */
        sc->sc_swflags = 0;     /* XXX */
        sc->sc_fifolen = 0;     /* XXX */



Home | Main Index | Thread Index | Old Index