summaryrefslogtreecommitdiffstats
path: root/pm49fl00x.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 /pm49fl00x.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 'pm49fl00x.c')
-rw-r--r--pm49fl00x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pm49fl00x.c b/pm49fl00x.c
index e2ca7b6..86f3497 100644
--- a/pm49fl00x.c
+++ b/pm49fl00x.c
@@ -35,7 +35,7 @@ void write_lockbits_49fl00x(volatile uint8_t *bios, int size,
if (block_size == 16384 && i % 2)
continue;
- writeb(bits, bios + (i * block_size) + 2);
+ chip_writeb(bits, bios + (i * block_size) + 2);
}
}
OpenPOWER on IntegriCloud