From 76f56e694aba0adfa215faeb79d265b0dbd35f84 Mon Sep 17 00:00:00 2001 From: cube Date: Tue, 18 Mar 2008 23:52:16 +0000 Subject: [PATCH] Set the device_t back pointer in the softc. --- sys/arch/acorn32/mainbus/wdc_pioc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/arch/acorn32/mainbus/wdc_pioc.c b/sys/arch/acorn32/mainbus/wdc_pioc.c index 39b04f1dbf30..e1d30965aca5 100644 --- a/sys/arch/acorn32/mainbus/wdc_pioc.c +++ b/sys/arch/acorn32/mainbus/wdc_pioc.c @@ -1,4 +1,4 @@ -/* $NetBSD: wdc_pioc.c,v 1.22 2008/03/18 20:46:35 cube Exp $ */ +/* $NetBSD: wdc_pioc.c,v 1.23 2008/03/18 23:52:16 cube Exp $ */ /* * Copyright (c) 1997-1998 Mark Brinicombe. @@ -34,7 +34,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: wdc_pioc.c,v 1.22 2008/03/18 20:46:35 cube Exp $"); +__KERNEL_RCSID(0, "$NetBSD: wdc_pioc.c,v 1.23 2008/03/18 23:52:16 cube Exp $"); #include #include @@ -153,6 +153,7 @@ wdc_pioc_attach(device_t parent, device_t self, void *aux) aprint_normal("\n"); + sc->sc_wdcdev.sc_atac.atac_dev = self; sc->sc_wdcdev.regs = wdr = &sc->sc_wdc_regs; iobase = pa->pa_iobase + pa->pa_offset; wdr->cmd_iot = pa->pa_iot;