diff options
author | mdodd <mdodd@FreeBSD.org> | 2004-01-13 21:44:03 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2004-01-13 21:44:03 +0000 |
commit | 7881e730c8d75356de18cabf25bc663d32cdfa8b (patch) | |
tree | 0fca0234c49e8debfdb808913557a6a568e2ac00 /sys/dev/ida | |
parent | 3b6a4c1e1fd715cdf47abc535e606a1d3020b1b7 (diff) | |
download | FreeBSD-src-7881e730c8d75356de18cabf25bc663d32cdfa8b.zip FreeBSD-src-7881e730c8d75356de18cabf25bc663d32cdfa8b.tar.gz |
Initialize drive device_t in softc.
Diffstat (limited to 'sys/dev/ida')
-rw-r--r-- | sys/dev/ida/ida_disk.c | 1 |
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; |