From a3ebeaa87b4f31dbb05d99be038ef77eed2aad3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Thu, 9 Jun 2005 12:31:07 +0000 Subject: [PATCH] Use the presence of ctlr->dmainit instead of r_res1 to find out when to initialise DMA. --- sys/dev/ata/ata-pci.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index da02e3ac1b9..0222ef518e5 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);