summaryrefslogtreecommitdiff
path: root/include/linux/pmic_external.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pmic_external.h')
-rw-r--r--include/linux/pmic_external.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pmic_external.h b/include/linux/pmic_external.h
index dd6c7c11b5a3..d704a5315c99 100644
--- a/include/linux/pmic_external.h
+++ b/include/linux/pmic_external.h
@@ -41,7 +41,9 @@
#include <linux/ioctl.h>
#include <linux/pmic_status.h>
+#ifdef __KERNEL__
#include <linux/spi/spi.h>
+#endif /*__KERNEL__*/
/*!
* This is the enumeration of versions of PMIC