]> mj.ucw.cz Git - pciutils.git/blobdiff - lib/i386-io-cygwin.h
Names: Fixed a rare bug in loading of pci.ids
[pciutils.git] / lib / i386-io-cygwin.h
index 16022482f268f89c7f597a83b676592324987b38..41180570e8ff610c403dc3042024ef22313c9cf0 100644 (file)
@@ -3,22 +3,25 @@
  *
  *     Copyright (c) 1997--2006 Martin Mares <mj@ucw.cz>
  *
- *     Can be freely distributed and used under the terms of the GNU GPL.
+ *     Can be freely distributed and used under the terms of the GNU GPL v2+
+ *
+ *     SPDX-License-Identifier: GPL-2.0-or-later
  */
 
 #include <sys/io.h>
 
+#include "i386-io-access.h"
+
 static int
 intel_setup_io(struct pci_access *a UNUSED)
 {
   return (iopl(3) < 0) ? 0 : 1;
 }
 
-static inline int
+static inline void
 intel_cleanup_io(struct pci_access *a UNUSED)
 {
-  iopl(3);
-  return -1;
+  iopl(0);
 }
 
 static inline void intel_io_lock(void)