mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Use the presence of ctlr->dmainit instead of r_res1 to find out when to
initialise DMA.
This commit is contained in:
parent
f60e923b23
commit
a3ebeaa87b
1 changed files with 1 additions and 1 deletions
|
|
@ -535,7 +535,7 @@ ata_pcichannel_attach(device_t dev)
|
|||
struct ata_channel *ch = device_get_softc(dev);
|
||||
int error;
|
||||
|
||||
if (ctlr->r_res1)
|
||||
if (ctlr->dmainit)
|
||||
ctlr->dmainit(dev);
|
||||
if (ch->dma)
|
||||
ch->dma->alloc(dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue