From d35148311bebc5f935642333bd965c18b7682a74 Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 13 Jul 2004 02:44:40 +0000 Subject: Set fdc_dev in attach --- sys/dev/fdc/fdc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c index 33f9ce4..c549ebc 100644 --- a/sys/dev/fdc/fdc.c +++ b/sys/dev/fdc/fdc.c @@ -799,6 +799,7 @@ fdc_attach(device_t dev) int i, error, dunit; fdc = device_get_softc(dev); + fdc->fdc_dev = dev; error = fdc_alloc_resources(fdc); if (error) { device_printf(dev, "cannot re-acquire resources\n"); -- cgit v1.1