summaryrefslogtreecommitdiff
path: root/util/flashrom/sst_fwhub.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/flashrom/sst_fwhub.c')
-rw-r--r--util/flashrom/sst_fwhub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flashrom/sst_fwhub.c b/util/flashrom/sst_fwhub.c
index 2c2992e682..ab541e41f8 100644
--- a/util/flashrom/sst_fwhub.c
+++ b/util/flashrom/sst_fwhub.c
@@ -51,7 +51,7 @@ int erase_sst_fwhub_block(struct flashchip *flash, int offset)
volatile uint8_t *wrprotect = flash->virtual_registers + offset + 2;
// clear write protect
- writeb(0, wrprotect);
+ chip_writeb(0, wrprotect);
erase_block_jedec(flash->virtual_memory, offset);
toggle_ready_jedec(flash->virtual_memory);