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
commit0472f3d82624dcb19f25746172c6d59532e2463c (patch)
treea396b47eb0133b6a7543d69216933227a2c26b5c /sst_fwhub.c
parentb88556979b65914d8b0fc85861efeaa9ad9a1d3c (diff)
downloadast2050-flashrom-0472f3d82624dcb19f25746172c6d59532e2463c.zip
ast2050-flashrom-0472f3d82624dcb19f25746172c6d59532e2463c.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