summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Waters <justin.waters@timesys.com>2010-03-31 13:06:39 -0400
committerJustin Waters <justin.waters@timesys.com>2010-03-31 13:06:39 -0400
commitc484375779096047ecaa0bfd63599fde850bf3c3 (patch)
tree4af068dfa27d27530381d0f478404db756701b52
parent549dd9291adf1f9187dec1e6c024bcdabab1b1f5 (diff)
Fix MTD headers for MX51 CCWMX51JS board
-rw-r--r--arch/arm/mach-mx51/mx51_ccwmx51js.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/arch/arm/mach-mx51/mx51_ccwmx51js.c b/arch/arm/mach-mx51/mx51_ccwmx51js.c
index 86fba190715e..a1637173c4d6 100644
--- a/arch/arm/mach-mx51/mx51_ccwmx51js.c
+++ b/arch/arm/mach-mx51/mx51_ccwmx51js.c
@@ -26,9 +26,6 @@
#include <linux/spi/spi.h>
#include <linux/i2c.h>
#include <linux/ata.h>
-#include <linux/mtd/mtd.h>
-#include <linux/mtd/partitions.h>
-#include <linux/spi/flash.h>
#include <linux/regulator/consumer.h>
#include <linux/pmic_external.h>
#include <linux/pmic_status.h>
@@ -52,6 +49,15 @@
#include <mach/mxc_edid.h>
#include <linux/smc911x.h>
+#if defined(CONFIG_MTD) || defined(CONFIG_MTD_MODULE)
+#include <linux/mtd/mtd.h>
+#include <linux/mtd/map.h>
+#include <linux/mtd/partitions.h>
+
+#include <asm/mach/flash.h>
+#endif
+
+
/*!
* @file mach-mx51/mx51_ccwmx51js.c
*