summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdodd <mdodd@FreeBSD.org>2004-01-13 21:44:03 +0000
committermdodd <mdodd@FreeBSD.org>2004-01-13 21:44:03 +0000
commit7881e730c8d75356de18cabf25bc663d32cdfa8b (patch)
tree0fca0234c49e8debfdb808913557a6a568e2ac00
parent3b6a4c1e1fd715cdf47abc535e606a1d3020b1b7 (diff)
downloadFreeBSD-src-7881e730c8d75356de18cabf25bc663d32cdfa8b.zip
FreeBSD-src-7881e730c8d75356de18cabf25bc663d32cdfa8b.tar.gz
Initialize drive device_t in softc.
-rw-r--r--sys/dev/ida/ida_disk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c
index a960a33..1a015f9 100644
--- a/sys/dev/ida/ida_disk.c
+++ b/sys/dev/ida/ida_disk.c
@@ -177,6 +177,7 @@ idad_attach(device_t dev)
drv = (struct idad_softc *)device_get_softc(dev);
parent = device_get_parent(dev);
+ drv->dev = dev;
drv->controller = (struct ida_softc *)device_get_softc(parent);
drv->unit = device_get_unit(dev);
drv->drive = drv->controller->num_drives;
OpenPOWER on IntegriCloud