From 9756397b620c3880b94b9db3da96892fa952a3cf Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Thu, 26 Apr 2012 16:30:42 +0200 Subject: arm: use PATH_MEM in ioperm() Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/arm/ioperm.c | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'libc/sysdeps/linux') diff --git a/libc/sysdeps/linux/arm/ioperm.c b/libc/sysdeps/linux/arm/ioperm.c index a7f6c3067..e1da1875c 100644 --- a/libc/sysdeps/linux/arm/ioperm.c +++ b/libc/sysdeps/linux/arm/ioperm.c @@ -33,21 +33,16 @@ the area affected (this is a kernel limitation). So we now just enable all the ports all of the time. */ +#include +#include +#include +#include #include -#include -#include #include -#include +#include #include #include - -#include -#include -#include -#include - - - +#include #include #define PATH_ARM_SYSTYPE "/etc/arm_systype" @@ -186,7 +181,7 @@ int ioperm (unsigned long int from, unsigned long int num, int turn_on) if (! io.base) { int fd; - fd = open ("/dev/mem", O_RDWR); + fd = open (_PATH_MEM, O_RDWR); if (fd < 0) return -1; -- cgit v1.2.3