Fix one more device/softc split error:

- set sc->sc_dev properly
This commit is contained in:
tsutsui 2012-12-12 13:32:37 +00:00
parent 8fd1bb626e
commit 3ce0b43194

View File

@ -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 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 */