summaryrefslogtreecommitdiffstats
path: root/include/asm-powerpc/macio.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-powerpc/macio.h')
-rw-r--r--include/asm-powerpc/macio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-powerpc/macio.h b/include/asm-powerpc/macio.h
index b553dd4b139..3a6cb1a513b 100644
--- a/include/asm-powerpc/macio.h
+++ b/include/asm-powerpc/macio.h
@@ -1,5 +1,6 @@
#ifndef __MACIO_ASIC_H__
#define __MACIO_ASIC_H__
+#ifdef __KERNEL__
#include <asm/of_device.h>
@@ -137,4 +138,5 @@ struct macio_driver
extern int macio_register_driver(struct macio_driver *);
extern void macio_unregister_driver(struct macio_driver *);
+#endif /* __KERNEL__ */
#endif /* __MACIO_ASIC_H__ */