diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-03-06 22:26:00 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-03-06 22:26:00 +0000 |
commit | 30467dbf53d9235a128dcc0b4c6a5a0a3a942981 (patch) | |
tree | a396b47eb0133b6a7543d69216933227a2c26b5c /pm49fl00x.c | |
parent | 8c0a1735096fe5ef77e1639bf1bf8f7b996d7a9e (diff) | |
download | flashrom-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.c | 2 |
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); } } |