aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2012-09-29 01:02:42 -0400
committerAfzal Mohammed <afzal@ti.com>2012-10-15 05:12:03 -0400
commitb6ab13e7d6d2778702baea7433d0bd9f234d5083 (patch)
treeaef0daa2d085015b64f7069c116f972d94e72e76 /include/linux/platform_data
parentb7754452b3e27716347a528b47b0a1083af32520 (diff)
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 'include/linux/platform_data')
-rw-r--r--include/linux/platform_data/mtd-onenand-omap2.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/include/linux/platform_data/mtd-onenand-omap2.h b/include/linux/platform_data/mtd-onenand-omap2.h
index ef9c60d4b29b..685af7e8b120 100644
--- a/include/linux/platform_data/mtd-onenand-omap2.h
+++ b/include/linux/platform_data/mtd-onenand-omap2.h
@@ -9,6 +9,9 @@
9 * published by the Free Software Foundation. 9 * published by the Free Software Foundation.
10 */ 10 */
11 11
12#ifndef __MTD_ONENAND_OMAP2_H
13#define __MTD_ONENAND_OMAP2_H
14
12#include <linux/mtd/mtd.h> 15#include <linux/mtd/mtd.h>
13#include <linux/mtd/partitions.h> 16#include <linux/mtd/partitions.h>
14 17
@@ -27,20 +30,4 @@ struct omap_onenand_platform_data {
27 u8 regulator_can_sleep; 30 u8 regulator_can_sleep;
28 u8 skip_initial_unlocking; 31 u8 skip_initial_unlocking;
29}; 32};
30
31#define ONENAND_MAX_PARTITIONS 8
32
33#if defined(CONFIG_MTD_ONENAND_OMAP2) || \
34 defined(CONFIG_MTD_ONENAND_OMAP2_MODULE)
35
36extern void gpmc_onenand_init(struct omap_onenand_platform_data *d);
37
38#else
39
40#define board_onenand_data NULL
41
42static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d)
43{
44}
45
46#endif 33#endif