diff options
-rw-r--r-- | drivers/mtd/nand/atmel_nand.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/mtd/nand/atmel_nand.c b/drivers/mtd/nand/atmel_nand.c index 7e88a801669c..f254fa636afc 100644 --- a/drivers/mtd/nand/atmel_nand.c +++ b/drivers/mtd/nand/atmel_nand.c | |||
@@ -599,7 +599,10 @@ static int __init atmel_nand_probe(struct platform_device *pdev) | |||
599 | nand_chip->options |= NAND_USE_FLASH_BBT; | 599 | nand_chip->options |= NAND_USE_FLASH_BBT; |
600 | } | 600 | } |
601 | 601 | ||
602 | if (cpu_has_dma() && use_dma) { | 602 | if (!cpu_has_dma()) |
603 | use_dma = 0; | ||
604 | |||
605 | if (use_dma) { | ||
603 | dma_cap_mask_t mask; | 606 | dma_cap_mask_t mask; |
604 | 607 | ||
605 | dma_cap_zero(mask); | 608 | dma_cap_zero(mask); |