1
0
mirror of https://review.coreboot.org/flashrom.git synced 2025-07-01 22:21:16 +02:00

Releasing IO permissions was done by hand everywhere

Use a proper abstraction. Kill unneeded #include statements.

Corresponding to flashrom svn r672.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
This commit is contained in:
Carl-Daniel Hailfinger
2009-08-09 21:50:24 +00:00
parent be726817f7
commit db41c59e3b
4 changed files with 11 additions and 16 deletions

View File

@ -20,10 +20,7 @@
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include "flash.h"
#define BIOS_ROM_ADDR 0x04
@ -99,9 +96,7 @@ int nic3com_shutdown(void)
free(pcidev_bdf);
pci_cleanup(pacc);
#if defined(__FreeBSD__) || defined(__DragonFly__)
close(io_fd);
#endif
release_io_perms();
return 0;
}