summaryrefslogtreecommitdiffstats
path: root/satasii.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-09 21:50:24 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2009-08-09 21:50:24 +0000
commita720e5e0b94dad417088c6003a49f48dde065622 (patch)
treef46b32f2d22db4fcbec9f2d33a3566f71e7dbb07 /satasii.c
parent4f215581e590a09829a75c655147abf52d697d86 (diff)
downloadflashrom-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.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/satasii.c b/satasii.c
index 03baa3e..b576749 100644
--- a/satasii.c
+++ b/satasii.c
@@ -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;
}
OpenPOWER on IntegriCloud