Fix small (but fatal) oversight in device/softc split.

This commit is contained in:
martin 2019-03-13 06:27:34 +00:00
parent c12ff316d5
commit 4038cb5885
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcctwo_68k.c,v 1.10 2012/10/27 17:18:04 chs Exp $ */
/* $NetBSD: pcctwo_68k.c,v 1.11 2019/03/13 06:27:34 martin Exp $ */
/*-
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pcctwo_68k.c,v 1.10 2012/10/27 17:18:04 chs Exp $");
__KERNEL_RCSID(0, "$NetBSD: pcctwo_68k.c,v 1.11 2019/03/13 06:27:34 martin Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -187,6 +187,7 @@ pcctwoattach(device_t parent, device_t self, void *aux)
uint8_t cid;
sc = sys_pcctwo = device_private(self);
sc->sc_dev = self;
ma = aux;
/* Get a handle to the PCCChip2's registers */