diff options
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/mtd-onenand-omap2.h | 19 |
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 | |||
| 36 | extern void gpmc_onenand_init(struct omap_onenand_platform_data *d); | ||
| 37 | |||
| 38 | #else | ||
| 39 | |||
| 40 | #define board_onenand_data NULL | ||
| 41 | |||
| 42 | static inline void gpmc_onenand_init(struct omap_onenand_platform_data *d) | ||
| 43 | { | ||
| 44 | } | ||
| 45 | |||
| 46 | #endif | 33 | #endif |
