Module Name:    src
Committed By:   tsutsui
Date:           Wed Dec 12 13:32:37 UTC 2012

Modified Files:
        src/sys/arch/sh3/dev: sci.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/sh3/dev/sci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sh3/dev/sci.c
diff -u src/sys/arch/sh3/dev/sci.c:1.56 src/sys/arch/sh3/dev/sci.c:1.57
--- src/sys/arch/sh3/dev/sci.c:1.56	Mon Oct 29 12:51:38 2012
+++ src/sys/arch/sh3/dev/sci.c	Wed Dec 12 13:32:37 2012
@@ -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_attach(device_t parent, device_t sel
 
 	sci_attached = 1;
 
+	sc->sc_dev = self;
 	sc->sc_hwflags = 0;	/* XXX */
 	sc->sc_swflags = 0;	/* XXX */
 	sc->sc_fifolen = 0;	/* XXX */

Reply via email to