summaryrefslogtreecommitdiffstats
path: root/sst_fwhub.c
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-04-06 11:58:03 +0000
committerStefan Reinauer <stepan@coresystems.de>2007-04-06 11:58:03 +0000
commit509f6c34508bd77baccb575a43ff3dab59e189d1 (patch)
tree2d6573bc465284fa3fc57fe2afaa8f7b1dabd1ad /sst_fwhub.c
parenteea11d6bad0f85e9b49ed00bf7993dc5da034214 (diff)
downloadflashrom-509f6c34508bd77baccb575a43ff3dab59e189d1.zip
flashrom-509f6c34508bd77baccb575a43ff3dab59e189d1.tar.gz
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. Corresponding to flashrom svn r100 and coreboot v2 svn r2585. Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.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 5d811a6..530f726 100644
--- a/sst_fwhub.c
+++ b/sst_fwhub.c
@@ -53,7 +53,7 @@ int probe_sst_fwhub(struct flashchip *flash)
return 0;
bios = mmap(0, size, PROT_WRITE | PROT_READ, MAP_SHARED,
- flash->fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
+ fd_mem, (off_t) (0xFFFFFFFF - 0x400000 - size + 1));
if (bios == MAP_FAILED) {
// it's this part but we can't map it ...
perror("Error MMAP /dev/mem");
OpenPOWER on IntegriCloud