summaryrefslogtreecommitdiffstats
path: root/chipset_enable.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-09 12:44:08 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-09 12:44:08 +0000
commit4f215581e590a09829a75c655147abf52d697d86 (patch)
treef6c67448c4b98b1f49e89826f451f51de027b1e5 /chipset_enable.c
parent43f36453692733b5eb640a34ace29926dc61a3b1 (diff)
downloadflashrom-4f215581e590a09829a75c655147abf52d697d86.zip
flashrom-4f215581e590a09829a75c655147abf52d697d86.tar.gz
Remove unnecessary #include files
Serprog compilation is now controlled by a Makefile variable. Replace munmap with physunmap where appropriate. Corresponding to flashrom svn r671. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Stefan Reinauer <stepan@coresystems.de>
Diffstat (limited to 'chipset_enable.c')
-rw-r--r--chipset_enable.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/chipset_enable.c b/chipset_enable.c
index 6452f82..b859be8 100644
--- a/chipset_enable.c
+++ b/chipset_enable.c
@@ -29,7 +29,6 @@
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/mman.h>
#include <fcntl.h>
#include "flash.h"
@@ -968,7 +967,7 @@ static int get_flashbase_sc520(struct pci_dev *dev, const char *name)
}
/* 4. Clean up */
- munmap(mmcr, getpagesize());
+ physunmap(mmcr, getpagesize());
return 0;
}
OpenPOWER on IntegriCloud