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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user