diff options
Diffstat (limited to 'arch/arm/mach-omap2/board-flash.h')
-rw-r--r-- | arch/arm/mach-omap2/board-flash.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-flash.h b/arch/arm/mach-omap2/board-flash.h index c240a3f8d163..d25503a98417 100644 --- a/arch/arm/mach-omap2/board-flash.h +++ b/arch/arm/mach-omap2/board-flash.h | |||
@@ -24,7 +24,26 @@ struct flash_partitions { | |||
24 | int nr_parts; | 24 | int nr_parts; |
25 | }; | 25 | }; |
26 | 26 | ||
27 | #if defined(CONFIG_MTD_NAND_OMAP2) || \ | ||
28 | defined(CONFIG_MTD_NAND_OMAP2_MODULE) || \ | ||
29 | defined(CONFIG_MTD_ONENAND_OMAP2) || \ | ||
30 | defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) | ||
27 | extern void board_flash_init(struct flash_partitions [], | 31 | extern void board_flash_init(struct flash_partitions [], |
28 | char chip_sel[][GPMC_CS_NUM], int nand_type); | 32 | char chip_sel[][GPMC_CS_NUM], int nand_type); |
33 | #else | ||
34 | static inline void board_flash_init(struct flash_partitions part[], | ||
35 | char chip_sel[][GPMC_CS_NUM], int nand_type) | ||
36 | { | ||
37 | } | ||
38 | #endif | ||
39 | |||
40 | #if defined(CONFIG_MTD_NAND_OMAP2) || \ | ||
41 | defined(CONFIG_MTD_NAND_OMAP2_MODULE) | ||
29 | extern void board_nand_init(struct mtd_partition *nand_parts, | 42 | extern void board_nand_init(struct mtd_partition *nand_parts, |
30 | u8 nr_parts, u8 cs, int nand_type); | 43 | u8 nr_parts, u8 cs, int nand_type); |
44 | #else | ||
45 | static inline void board_nand_init(struct mtd_partition *nand_parts, | ||
46 | u8 nr_parts, u8 cs, int nand_type) | ||
47 | { | ||
48 | } | ||
49 | #endif | ||