summaryrefslogtreecommitdiff
path: root/board/dave/common/flash.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/dave/common/flash.c')
-rw-r--r--board/dave/common/flash.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/board/dave/common/flash.c b/board/dave/common/flash.c
index b0e4116..446defc 100644
--- a/board/dave/common/flash.c
+++ b/board/dave/common/flash.c
@@ -669,8 +669,7 @@ static int write_word (flash_info_t *info, ulong dest, ulong data)
int i;
/* Check if Flash is (sufficiently) erased */
- if ((*((volatile CFG_FLASH_WORD_SIZE *)dest) &
- (CFG_FLASH_WORD_SIZE)data) != (CFG_FLASH_WORD_SIZE)data) {
+ if ((*((volatile ulong *)dest) & data) != data) {
return (2);
}
/* Disable interrupts which might cause a timeout here */