diff options
author | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 03:22:54 +0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2011-10-31 03:22:54 +0400 |
commit | c6c3a3a03e6de52866bc81a32fc551733625d553 (patch) | |
tree | b55967a9163dba315e2543d648de758b82c85fa1 /arch/arm/mach-omap2/board-flash.h | |
parent | 07e87e15b969a05a7943d7ff1abc2d8da287171c (diff) | |
parent | 8aca3ab5865f8cfbde841b6daf9442cc2279ced3 (diff) | |
download | linux-c6c3a3a03e6de52866bc81a32fc551733625d553.tar.xz |
Merge branch 'omap/cleanup' into next/cleanup2
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 { int nr_parts; }; +#if defined(CONFIG_MTD_NAND_OMAP2) || \ + defined(CONFIG_MTD_NAND_OMAP2_MODULE) || \ + defined(CONFIG_MTD_ONENAND_OMAP2) || \ + defined(CONFIG_MTD_ONENAND_OMAP2_MODULE) extern void board_flash_init(struct flash_partitions [], char chip_sel[][GPMC_CS_NUM], int nand_type); +#else +static inline void board_flash_init(struct flash_partitions part[], + char chip_sel[][GPMC_CS_NUM], int nand_type) +{ +} +#endif + +#if defined(CONFIG_MTD_NAND_OMAP2) || \ + defined(CONFIG_MTD_NAND_OMAP2_MODULE) extern void board_nand_init(struct mtd_partition *nand_parts, u8 nr_parts, u8 cs, int nand_type); +#else +static inline void board_nand_init(struct mtd_partition *nand_parts, + u8 nr_parts, u8 cs, int nand_type) +{ +} +#endif |