From: Roger Quadros Date: Wed, 24 Aug 2016 09:10:17 +0000 (+0300) Subject: memory: omap-gpmc: Fix build with CONFIG_OMAP_GPMC disabled X-Git-Tag: v4.9-rc1~77^2~14^2~1 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=0680b0cabcd0a2264f0ad8ac569caf928f65afb6;p=karo-tx-linux.git 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 --- 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; }