flash: Rename erase_flash to flash_erase

Change-Id: I417319aadb2fdbfa2d688bb26b5515d2f9265994
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/mboxd_windows.c b/mboxd_windows.c
index ed87df1..e689b47 100644
--- a/mboxd_windows.c
+++ b/mboxd_windows.c
@@ -217,7 +217,7 @@
 	 * We need to erase the flash from low_mem.flash_offset->
 	 * high_mem.flash_offset + high_mem.size
 	 */
-	rc = erase_flash(context, low_mem.flash_offset,
+	rc = flash_erase(context, low_mem.flash_offset,
 			 (high_mem.flash_offset - low_mem.flash_offset) +
 			 high_mem.size);
 	if (rc < 0) {
@@ -285,7 +285,7 @@
 	switch (type) {
 	case WINDOW_ERASED: /* >= V2 ONLY -> block_size == erasesize */
 		flash_offset = context->current->flash_offset + offset_bytes;
-		rc = erase_flash(context, flash_offset, count_bytes);
+		rc = flash_erase(context, flash_offset, count_bytes);
 		if (rc < 0) {
 			MSG_ERR("Couldn't erase flash\n");
 			return rc;
@@ -305,7 +305,7 @@
 		flash_offset = context->current->flash_offset + offset_bytes;
 
 		/* Erase the flash */
-		rc = erase_flash(context, flash_offset, count_bytes);
+		rc = flash_erase(context, flash_offset, count_bytes);
 		if (rc < 0) {
 			return rc;
 		}