summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Quadros <rogerq@ti.com>2016-08-24 12:10:17 +0300
committerRoger Quadros <rogerq@ti.com>2016-08-29 11:00:23 +0300
commit0680b0cabcd0a2264f0ad8ac569caf928f65afb6 (patch)
tree7a1ae1ec233cf967f26f4b0fed6fed7c82f3e39d
parent525fe43f55ff6d110680bb3d750bed3dda01b989 (diff)
memory: omap-gpmc: Fix build with CONFIG_OMAP_GPMC disabled
Fix the following build failure if omap-gpmc.h is used with CONFIG_OMAP_GPMC disabled. ./include/linux/omap-gpmc.h:32:1: error: unknown type name ‘gpmc_nand_ops’ Signed-off-by: Roger Quadros <rogerq@ti.com>
-rw-r--r--include/linux/omap-gpmc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/omap-gpmc.h b/include/linux/omap-gpmc.h
index 9e9d79e8efa5..35d0fd7a4948 100644
--- a/include/linux/omap-gpmc.h
+++ b/include/linux/omap-gpmc.h
@@ -29,8 +29,8 @@ struct gpmc_nand_regs;
struct gpmc_nand_ops *gpmc_omap_get_nand_ops(struct gpmc_nand_regs *regs,
int cs);
#else
-static inline gpmc_nand_ops *gpmc_omap_get_nand_ops(struct gpmc_nand_regs *regs,
- int cs)
+static inline struct gpmc_nand_ops *gpmc_omap_get_nand_ops(struct gpmc_nand_regs *regs,
+ int cs)
{
return NULL;
}