Factor out portable iopl()-style code into a global function which all programmers can use, add missing close() call (trivial). Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://coreboot.org/flashrom/trunk@511 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1