mtd: rawnand: brcmnand: fix sparse warnings
[linux-2.6-microblaze.git] / drivers / mtd / nand / raw / brcmnand / bcmbca_nand.c
index 7ad3e7a..ea53485 100644 (file)
@@ -76,8 +76,8 @@ static void bcmbca_read_data_bus(struct brcmnand_soc *soc,
         * and dest address, which is incompatible with nand cache. Fallback
         * to the memcpy_fromio in such case
         */
-       if (bcmbca_nand_is_buf_aligned((void *)flash_cache, buffer))
-               memcpy((void *)buffer, (void *)flash_cache, fc_words * 4);
+       if (bcmbca_nand_is_buf_aligned((void __force *)flash_cache, buffer))
+               memcpy((void *)buffer, (void __force *)flash_cache, fc_words * 4);
        else
                memcpy_fromio((void *)buffer, flash_cache, fc_words * 4);
 }