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
commit30467dbf53d9235a128dcc0b4c6a5a0a3a942981 (patch)
treea396b47eb0133b6a7543d69216933227a2c26b5c /pm49fl00x.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 '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