summaryrefslogtreecommitdiff
path: root/sys/arch/hp300
diff options
context:
space:
mode:
authorJoel Sing <jsing@cvs.openbsd.org>2010-09-08 14:47:13 +0000
committerJoel Sing <jsing@cvs.openbsd.org>2010-09-08 14:47:13 +0000
commit2400178eb12e4ae55366cddc266104a21c8df60f (patch)
tree15259ab5a980f8e1477bcaae84dedf58f56279c0 /sys/arch/hp300
parentd452d622fa42cc6269a51f625dfb518a7e93fc48 (diff)
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@
Diffstat (limited to 'sys/arch/hp300')
-rw-r--r--sys/arch/hp300/dev/hd.c4
1 files changed, 2 insertions, 2 deletions
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;