From 03cafbfdfe10d6797740c4456fd3a80c499e1c0b Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Fri, 6 Apr 2007 11:58:03 +0000 Subject: 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 Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2585 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/flashrom/sst49lfxxxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/flashrom/sst49lfxxxc.c') diff --git a/util/flashrom/sst49lfxxxc.c b/util/flashrom/sst49lfxxxc.c index 4486186bd7..522cb9b7c3 100644 --- a/util/flashrom/sst49lfxxxc.c +++ b/util/flashrom/sst49lfxxxc.c @@ -151,7 +151,7 @@ int probe_49lfxxxc(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"); -- cgit v1.2.3