memory: omap-gpmc: Fix build with CONFIG_OMAP_GPMC disabled
authorRoger Quadros <rogerq@ti.com>
Wed, 24 Aug 2016 09:10:17 +0000 (12:10 +0300)
committerRoger Quadros <rogerq@ti.com>
Mon, 29 Aug 2016 08:00:23 +0000 (11:00 +0300)
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>
include/linux/omap-gpmc.h

index 9e9d79e..35d0fd7 100644 (file)
@@ -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;
 }