summaryrefslogtreecommitdiff
path: root/util/flashrom/82802ab.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-04-06 11:58:03 +0000
committerStefan Reinauer <stepan@openbios.org>2007-04-06 11:58:03 +0000
commit03cafbfdfe10d6797740c4456fd3a80c499e1c0b (patch)
treefd9163184ad2a3d7aca568ebea3ccb776f619215 /util/flashrom/82802ab.c
parent8944499617828164dff09203e5a259f1bb517399 (diff)
downloadcoreboot-03cafbfdfe10d6797740c4456fd3a80c499e1c0b.tar.xz
Trivial (cosmetic) cleanup:
* Only open /dev/mem once and do it early. * Drop extern for function prototypes. * Minimize ts5300 impact in probe_flash() This cleanup will making ICH7 SPI support quite some easier. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2585 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/flashrom/82802ab.c')
-rw-r--r--util/flashrom/82802ab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flashrom/82802ab.c b/util/flashrom/82802ab.c
index 99776a1f88..c0f60efc7f 100644
--- a/util/flashrom/82802ab.c
+++ b/util/flashrom/82802ab.c
@@ -79,7 +79,7 @@ int probe_82802ab(struct flashchip *flash)
size_t size = flash->total_size * 1024;
// we need to mmap the write-protect space.
bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
- flash->fd_mem, (off_t) (0 - 0x400000 - size));
+ fd_mem, (off_t) (0 - 0x400000 - size));
if (bios == MAP_FAILED) {
// it's this part but we can't map it ...
perror("Error MMAP memory using " MEM_DEV );