Set fdc_dev in attach

This commit is contained in:
Warner Losh 2004-07-13 02:44:40 +00:00
parent c3ae4c40ef
commit b0c2b92548

View File

@ -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");