]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/mtd/nand/bf5xx_nand.c
mtd: Blackfin NFC: make sure to check NAND_ALE in cmd_ctrl
[mv-sheeva.git] / drivers / mtd / nand / bf5xx_nand.c
index ca39819982bf5ee49a75b9acabb48cefc8972e13..5c999e01db6fab5266feab48e950fe5b7ca11b82 100644 (file)
@@ -203,7 +203,7 @@ static void bf5xx_nand_hwcontrol(struct mtd_info *mtd, int cmd,
 
        if (ctrl & NAND_CLE)
                bfin_write_NFC_CMD(cmd);
-       else
+       else if (ctrl & NAND_ALE)
                bfin_write_NFC_ADDR(cmd);
        SSYNC();
 }