Do be so anal on detach, properly free interrupt even if no devices.

This commit is contained in:
Søren Schmidt 2001-12-14 21:23:19 +00:00
parent c579474cea
commit de56c1c5d8

View File

@ -218,7 +218,7 @@ ata_detach(device_t dev)
if (!dev)
return ENXIO;
scp = device_get_softc(dev);
if (!scp || !scp->devices)
if (!scp)
return ENXIO;
/* make sure channel is not busy SOS XXX */