aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/gpmc-onenand.h
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2012-09-29 10:32:42 +0530
committerAfzal Mohammed <afzal@ti.com>2012-10-15 14:42:03 +0530
commitb6ab13e7d6d2778702baea7433d0bd9f234d5083 (patch)
treeaef0daa2d085015b64f7069c116f972d94e72e76 /arch/arm/mach-omap2/gpmc-onenand.h
parentmtd: onenand: omap: use pdata info instead of cpu_is (diff)
downloadlinux-dev-b6ab13e7d6d2778702baea7433d0bd9f234d5083.tar.xz
linux-dev-b6ab13e7d6d2778702baea7433d0bd9f234d5083.zip
ARM: OMAP2+: onenand: header cleanup
For common arm zImage existing onenand header file in platform specific location was moved to generic platform data location, but it contained more than platform data, remove it. New local header has been created for exposing functions. Signed-off-by: Afzal Mohammed <afzal@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2/gpmc-onenand.h')
-rw-r--r--arch/arm/mach-omap2/gpmc-onenand.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/gpmc-onenand.h b/arch/arm/mach-omap2/gpmc-onenand.h
new file mode 100644
index 000000000000..216f23a8b45c
--- /dev/null
+++ b/arch/arm/mach-omap2/gpmc-onenand.h
@@ -0,0 +1,24 @@
+/*
+ * arch/arm/mach-omap2/gpmc-onenand.h
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ */
+
+#ifndef __OMAP2_GPMC_ONENAND_H
+#define __OMAP2_GPMC_ONENAND_H
+
+#include <linux/platform_data/mtd-onenand-omap2.h>
+
+#if IS_ENABLED(CONFIG_MTD_ONENAND_OMAP2)
+extern void gpmc_onenand_init(struct omap_onenand_platform_data *d);
+#else
+#define board_onenand_data NULL
+static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d)
+{
+}
+#endif
+
+#endif