From 2400178eb12e4ae55366cddc266104a21c8df60f Mon Sep 17 00:00:00 2001 From: Joel Sing Date: Wed, 8 Sep 2010 14:47:13 +0000 Subject: Store a struct device pointer within struct disk and populate this when disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@ --- sys/arch/hp300/dev/hd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/arch/hp300') diff --git a/sys/arch/hp300/dev/hd.c b/sys/arch/hp300/dev/hd.c index 5a87a5fa14e..e23eeb7c53f 100644 --- a/sys/arch/hp300/dev/hd.c +++ b/sys/arch/hp300/dev/hd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hd.c,v 1.61 2010/05/23 10:49:19 dlg Exp $ */ +/* $OpenBSD: hd.c,v 1.62 2010/09/08 14:47:10 jsing Exp $ */ /* $NetBSD: rd.c,v 1.33 1997/07/10 18:14:08 kleink Exp $ */ /* @@ -295,7 +295,7 @@ hdattach(parent, self, aux) * Initialize and attach the disk structure. */ sc->sc_dkdev.dk_name = sc->sc_dev.dv_xname; - disk_attach(&sc->sc_dkdev); + disk_attach(&sc->sc_dev, &sc->sc_dkdev); sc->sc_slave = ha->ha_slave; sc->sc_punit = ha->ha_punit; -- cgit v1.2.3