Add sc_dev removed previously in a moment of insanity. How did this ever work

is beyond me.
This commit is contained in:
rkujawa 2012-10-30 01:17:24 +00:00
parent 973b51a234
commit 208853a9ca
2 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: clockport.c,v 1.4 2012/10/27 17:17:26 chs Exp $ */
/* $NetBSD: clockport.c,v 1.5 2012/10/30 01:17:24 rkujawa Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@ -62,6 +62,7 @@ clockport_attach(device_t parent, device_t self, void *aux)
aprint_normal("\n");
sc = device_private(self);
sc->sc_dev = self;
sc->cpb_aa = (struct clockportbus_attach_args *) aux;
config_search_ia(clockport_submatch, self, "clockport", 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: clockportvar.h,v 1.4 2012/07/09 19:32:26 rkujawa Exp $ */
/* $NetBSD: clockportvar.h,v 1.5 2012/10/30 01:17:24 rkujawa Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@ -38,6 +38,7 @@ struct gencp_softc {
};
struct clockportbus_softc {
device_t sc_dev;
struct clockportbus_attach_args *cpb_aa;
};