]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/ata/pata_macio.c
libata-sff: clean up BMDMA initialization
[net-next-2.6.git] / drivers / ata / pata_macio.c
index 17e4e5d19696ec23c981ec0241bef26b2919871f..25df50f51c046d44c9a3f0579eb247b0029228d1 100644 (file)
@@ -720,6 +720,8 @@ static int pata_macio_port_start(struct ata_port *ap)
        if (priv->dma_table_cpu == NULL) {
                dev_err(priv->dev, "Unable to allocate DMA command list\n");
                ap->ioaddr.bmdma_addr = NULL;
+               ap->mwdma_mask = 0;
+               ap->udma_mask = 0;
        }
        return 0;
 }