Use the presence of ctlr->dmainit instead of r_res1 to find out when to

initialise DMA.
This commit is contained in:
Søren Schmidt 2005-06-09 12:31:07 +00:00
parent f60e923b23
commit a3ebeaa87b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147167

View File

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