memory: omap-gpmc: Fix -Wunused-function warnings
authorYueHaibing <yuehaibing@huawei.com>
Tue, 1 Sep 2020 11:28:32 +0000 (19:28 +0800)
committerKrzysztof Kozlowski <krzk@kernel.org>
Wed, 2 Sep 2020 15:29:11 +0000 (17:29 +0200)
commit6cf238d4e21bc21bc18d126358dd617b2c991d66
tree2aece7903c696e04a680abc4400ec111ef93a92c
parentea90f66f2a8629dde07328df0b8314aae5e54a47
memory: omap-gpmc: Fix -Wunused-function warnings

If CONFIG_OF is not set, make W=1 warns:

  drivers/memory/omap-gpmc.c:987:12: warning: ‘gpmc_cs_remap’ defined but not used [-Wunused-function]
  drivers/memory/omap-gpmc.c:926:20: warning: ‘gpmc_cs_get_name’ defined but not used [-Wunused-function]
  drivers/memory/omap-gpmc.c:919:13: warning: ‘gpmc_cs_set_name’ defined but not used [-Wunused-function]

Move them to #ifdef CONFIG_OF block to fix this.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Roger Quadros <rogerq@ti.com>
Link: https://lore.kernel.org/r/20200901112832.3084-1-yuehaibing%40huawei.com
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/omap-gpmc.c