Set fdc_dev in attach
This commit is contained in:
parent
c3ae4c40ef
commit
b0c2b92548
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user