]> git.sur5r.net Git - u-boot/blobdiff - drivers/mtd/nand/denali_spl.c
mtd: vf610_nfc: mark page as dirty on block erase
[u-boot] / drivers / mtd / nand / denali_spl.c
index 65fdde8a65290eeb062f479a10ae26449d55703a..e98f537c2c36fa1d8035b4cfbc91ed2c6c0a98ee 100644 (file)
@@ -203,7 +203,7 @@ int nand_spl_load_image(uint32_t offs, unsigned int size, void *dst)
                        if (ret < 0)
                                return ret;
 
-                       readlen = min(page_size - column, size);
+                       readlen = min(page_size - column, (int)size);
                        memcpy(dst, page_buffer, readlen);
 
                        column = 0;