diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-09 21:50:24 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-08-09 21:50:24 +0000 |
commit | a720e5e0b94dad417088c6003a49f48dde065622 (patch) | |
tree | f46b32f2d22db4fcbec9f2d33a3566f71e7dbb07 /satasii.c | |
parent | 4f215581e590a09829a75c655147abf52d697d86 (diff) | |
download | flashrom-a720e5e0b94dad417088c6003a49f48dde065622.zip flashrom-a720e5e0b94dad417088c6003a49f48dde065622.tar.gz |
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>
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; } |