From 7881e730c8d75356de18cabf25bc663d32cdfa8b Mon Sep 17 00:00:00 2001 From: mdodd Date: Tue, 13 Jan 2004 21:44:03 +0000 Subject: Initialize drive device_t in softc. --- sys/dev/ida/ida_disk.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/ida') 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; -- cgit v1.1