Skip to contentSkip to conversation

memory: omap-gpmc: Fix build with CONFIG_OMAP_GPMC disabled

PATCH New Roger Quadros 1 participant 1 message Aug 24, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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’

---
 include/linux/omap-gpmc.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/omap-gpmc.h +2 -2
index 9e9d79e..35d0fd7 100644
@@ -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;
 }
Signature · 1 line
2.7.4