From 3ce0b431941a894b1585a060adfdf3856c64a671 Mon Sep 17 00:00:00 2001 From: tsutsui Date: Wed, 12 Dec 2012 13:32:37 +0000 Subject: [PATCH] Fix one more device/softc split error: - set sc->sc_dev properly --- sys/arch/sh3/dev/sci.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/sh3/dev/sci.c b/sys/arch/sh3/dev/sci.c index 586e98768bc6..4d70c18d4f8a 100644 --- a/sys/arch/sh3/dev/sci.c +++ b/sys/arch/sh3/dev/sci.c @@ -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 -__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 self, void *aux) sci_attached = 1; + sc->sc_dev = self; sc->sc_hwflags = 0; /* XXX */ sc->sc_swflags = 0; /* XXX */ sc->sc_fifolen = 0; /* XXX */