summaryrefslogtreecommitdiffstats
path: root/sst_fwhub.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-03-06 22:26:00 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-03-06 22:26:00 +0000
commit30467dbf53d9235a128dcc0b4c6a5a0a3a942981 (patch)
treea396b47eb0133b6a7543d69216933227a2c26b5c /sst_fwhub.c
parent8c0a1735096fe5ef77e1639bf1bf8f7b996d7a9e (diff)
downloadflashrom-30467dbf53d9235a128dcc0b4c6a5a0a3a942981.zip
flashrom-30467dbf53d9235a128dcc0b4c6a5a0a3a942981.tar.gz
FreeBSD definitions of (read|write)[bwl] collide with our own
Before we attempt trickery, we can simply rename the accessor functions. Patch created with the help of Coccinelle. Corresponding to flashrom svn r420 and coreboot v2 svn r3984. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Idwer Vollering <idwer_v@hotmail.com> Acked-by: Patrick Georgi <patrick@georgi-clan.de>
Diffstat (limited to 'sst_fwhub.c')
-rw-r--r--sst_fwhub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sst_fwhub.c b/sst_fwhub.c
index 2c2992e..ab541e4 100644
--- a/sst_fwhub.c
+++ b/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);
OpenPOWER on IntegriCloud