Skip to content

Commit

Permalink
omap: fix the compile error if CONFIG_MTD_NAND_OMAP2 is notenabled
Browse files Browse the repository at this point in the history
If CONFIG_MTD_NAND_OMAP2 is not enabled, there will be a compile error,
"gpmc_nand_init() is not defined". Add a inline noop function to fix it.

Signed-off-by: Stanley.Miao <stanley.miao@windriver.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
stanley.miao authored and Tony Lindgren committed Apr 23, 2010
1 parent c833481 commit 562468b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions arch/arm/plat-omap/include/plat/nand.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,11 @@ struct omap_nand_platform_data {
/* size (4 KiB) for IO mapping */
#define NAND_IO_SIZE SZ_4K

#if defined(CONFIG_MTD_NAND_OMAP2) || defined(CONFIG_MTD_NAND_OMAP2_MODULE)
extern int gpmc_nand_init(struct omap_nand_platform_data *d);
#else
static inline int gpmc_nand_init(struct omap_nand_platform_data *d)
{
return 0;
}
#endif

0 comments on commit 562468b

Please sign in to comment.