From ebf9670f10ed248365de8f7309472f354102a9e8 Mon Sep 17 00:00:00 2001 From: scw Date: Mon, 23 Mar 2009 18:59:57 +0000 Subject: [PATCH] Fix fallout from device_t changes - initialise sc->sc_osiop.sc_dev before calling osiop_attach(). --- sys/dev/mvme/osiop_pcctwo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/dev/mvme/osiop_pcctwo.c b/sys/dev/mvme/osiop_pcctwo.c index 5600e8e54f19..6cd4e9fca2f8 100644 --- a/sys/dev/mvme/osiop_pcctwo.c +++ b/sys/dev/mvme/osiop_pcctwo.c @@ -1,4 +1,4 @@ -/* $NetBSD: osiop_pcctwo.c,v 1.13 2008/04/28 20:23:54 martin Exp $ */ +/* $NetBSD: osiop_pcctwo.c,v 1.14 2009/03/23 18:59:57 scw Exp $ */ /*- * Copyright (c) 1999, 2002 The NetBSD Foundation, Inc. @@ -35,7 +35,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: osiop_pcctwo.c,v 1.13 2008/04/28 20:23:54 martin Exp $"); +__KERNEL_RCSID(0, "$NetBSD: osiop_pcctwo.c,v 1.14 2009/03/23 18:59:57 scw Exp $"); #include #include @@ -128,6 +128,7 @@ osiop_pcctwo_attach(device_t parent, device_t self, void *aux) #error Set up siop clock speed for mvme187 #endif + sc->sc_osiop.sc_dev = self; sc->sc_osiop.sc_bst = pa->pa_bust; sc->sc_osiop.sc_dmat = pa->pa_dmat; (void) bus_space_map(sc->sc_osiop.sc_bst, pa->pa_offset, OSIOP_NREGS,