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/dev/ata | |
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/dev/ata')
-rw-r--r-- | sys/dev/ata/wd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/wd.c b/sys/dev/ata/wd.c index 89375d47fd8..d4f140fde9c 100644 --- a/sys/dev/ata/wd.c +++ b/sys/dev/ata/wd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wd.c,v 1.91 2010/09/01 01:38:12 dlg Exp $ */ +/* $OpenBSD: wd.c,v 1.92 2010/09/08 14:47:12 jsing Exp $ */ /* $NetBSD: wd.c,v 1.193 1999/02/28 17:15:27 explorer Exp $ */ /* @@ -369,7 +369,7 @@ wdattach(struct device *parent, struct device *self, void *aux) timeout_set(&wd->sc_restart_timeout, wdrestart, wd); /* Attach disk. */ - disk_attach(&wd->sc_dk); + disk_attach(&wd->sc_dev, &wd->sc_dk); wd->sc_wdc_bio.lp = wd->sc_dk.dk_label; } |