diff options
author | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-08 14:47:13 +0000 |
---|---|---|
committer | Joel Sing <jsing@cvs.openbsd.org> | 2010-09-08 14:47:13 +0000 |
commit | 2400178eb12e4ae55366cddc266104a21c8df60f (patch) | |
tree | 15259ab5a980f8e1477bcaae84dedf58f56279c0 /sys/arch/sparc64/dev | |
parent | d452d622fa42cc6269a51f625dfb518a7e93fc48 (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/sparc64/dev')
-rw-r--r-- | sys/arch/sparc64/dev/fd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/fd.c b/sys/arch/sparc64/dev/fd.c index f7fc4321e02..597c6339cb1 100644 --- a/sys/arch/sparc64/dev/fd.c +++ b/sys/arch/sparc64/dev/fd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fd.c,v 1.32 2010/08/28 20:23:22 matthew Exp $ */ +/* $OpenBSD: fd.c,v 1.33 2010/09/08 14:47:10 jsing Exp $ */ /* $NetBSD: fd.c,v 1.112 2003/08/07 16:29:35 agc Exp $ */ /*- @@ -668,7 +668,7 @@ fdattach(parent, self, aux) * Initialize and attach the disk structure. */ fd->sc_dk.dk_name = fd->sc_dv.dv_xname; - disk_attach(&fd->sc_dk); + disk_attach(&fd->sc_dv, &fd->sc_dk); /* Make sure the drive motor gets turned off at shutdown time. */ fd->sc_sdhook = shutdownhook_establish(fd_motor_off, fd); |