diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index da02e3ac1b9e..0222ef518e57 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -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);