diff options
author | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-08-09 21:50:24 +0000 |
---|---|---|
committer | hailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2009-08-09 21:50:24 +0000 |
commit | b81877b999571d71c72676241722856fceaec249 (patch) | |
tree | f46b32f2d22db4fcbec9f2d33a3566f71e7dbb07 /satasii.c | |
parent | 208860628c8e425fba4210993ed0f6f26d190d2b (diff) | |
download | flashrom-b81877b999571d71c72676241722856fceaec249.tar.gz |
Releasing IO permissions was done by hand everywhere. Use a proper
abstraction.
Kill unneeded #include statements.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@672 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'satasii.c')
-rw-r--r-- | satasii.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -22,10 +22,6 @@ #include <stdlib.h> #include <string.h> -#include <fcntl.h> -#include <sys/types.h> -#include <sys/stat.h> -#include <errno.h> #include "flash.h" #define PCI_VENDOR_ID_SII 0x1095 @@ -77,9 +73,7 @@ int satasii_shutdown(void) { free(pcidev_bdf); pci_cleanup(pacc); -#if defined(__FreeBSD__) || defined(__DragonFly__) - close(io_fd); -#endif + release_io_perms(); return 0; } |