summaryrefslogtreecommitdiff
path: root/src/flash/lpc288x.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flash/lpc288x.c')
-rw-r--r--src/flash/lpc288x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flash/lpc288x.c b/src/flash/lpc288x.c
index 505dd1e3..29b7b81c 100644
--- a/src/flash/lpc288x.c
+++ b/src/flash/lpc288x.c
@@ -406,7 +406,7 @@ static int lpc288x_write(struct flash_bank_s *bank, u8 *buffer, u32 offset, u32
* it seems not to be a LOT slower....
* bulk_write_memory() is no quicker :(*/
#if 1
- if (target->type->write_memory(target, offset + dest_offset, 4, 128, page_buffer) != ERROR_OK)
+ if (target_write_memory(target, offset + dest_offset, 4, 128, page_buffer) != ERROR_OK)
{
LOG_ERROR("Write failed s %x p %x", sector, page);
return ERROR_FLASH_OPERATION_FAILED;