Fix a botch on device_t/softc split:

Don't forget to set sc->sc_dev.
This commit is contained in:
tsutsui 2009-09-26 15:40:02 +00:00
parent a6b618f221
commit cc35c23e68
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: mesh.c,v 1.31 2009/05/15 16:18:28 tsutsui Exp $ */
/* $NetBSD: mesh.c,v 1.32 2009/09/26 15:40:02 tsutsui Exp $ */
/*-
* Copyright (c) 2000 Tsubai Masanari.
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: mesh.c,v 1.31 2009/05/15 16:18:28 tsutsui Exp $");
__KERNEL_RCSID(0, "$NetBSD: mesh.c,v 1.32 2009/09/26 15:40:02 tsutsui Exp $");
#include <sys/param.h>
#include <sys/buf.h>
@ -207,6 +207,7 @@ mesh_attach(device_t parent, device_t self, void *aux)
int i;
u_int *reg;
sc->sc_dev = self;
reg = ca->ca_reg;
reg[0] += ca->ca_baseaddr;
reg[2] += ca->ca_baseaddr;