summaryrefslogtreecommitdiff
path: root/include/asm-powerpc/agp.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/agp.h')
-rw-r--r--include/asm-powerpc/agp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/agp.h b/include/asm-powerpc/agp.h
index 885b4631a6cf..e5ccaca2f5a4 100644
--- a/include/asm-powerpc/agp.h
+++ b/include/asm-powerpc/agp.h
@@ -1,5 +1,6 @@
#ifndef _ASM_POWERPC_AGP_H
#define _ASM_POWERPC_AGP_H
+#ifdef __KERNEL__
#include <asm/io.h>
@@ -18,4 +19,5 @@
#define free_gatt_pages(table, order) \
free_pages((unsigned long)(table), (order))
+#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_AGP_H */