Fix a panic with Cenatek controllers.
This commit is contained in:
parent
67a452057c
commit
db16c8c28b
@ -509,10 +509,11 @@ ata_pcisub_probe(device_t dev)
|
||||
if ((error = ctlr->allocate(dev, ch)))
|
||||
return error;
|
||||
|
||||
if (ctlr->chip)
|
||||
ch->chiptype = ctlr->chip->chipid;
|
||||
ch->device[MASTER].setmode = ctlr->setmode;
|
||||
ch->device[SLAVE].setmode = ctlr->setmode;
|
||||
ch->locking = ctlr->locking;
|
||||
ch->chiptype = ctlr->chip->chipid;
|
||||
return ata_probe(dev);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user