summaryrefslogtreecommitdiff
path: root/include/nand.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/nand.h')
-rw-r--r--include/nand.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nand.h b/include/nand.h
index 3490347..905115b 100644
--- a/include/nand.h
+++ b/include/nand.h
@@ -35,12 +35,12 @@ extern nand_info_t nand_info[];
static inline int nand_read(nand_info_t *info, ulong ofs, ulong *len, u_char *buf)
{
- return info->read(info, ofs, *len, len, buf);
+ return info->read(info, ofs, *len, (size_t *)len, buf);
}
static inline int nand_write(nand_info_t *info, ulong ofs, ulong *len, u_char *buf)
{
- return info->write(info, ofs, *len, len, buf);
+ return info->write(info, ofs, *len, (size_t *)len, buf);
}
static inline int nand_block_isbad(nand_info_t *info, ulong ofs)