linux/arch/arm/mach-omap2
Yongqiang Liu 864b5a8d53 ARM: OMAP2+: Fix build warning when mmc_omap is not built
[ Upstream commit 040ab72ee10ea88e1883ad143b3e2b77596abc31 ]

GCC reports the following warning with W=1:

arch/arm/mach-omap2/board-n8x0.c:325:19: warning:
variable 'index' set but not used [-Wunused-but-set-variable]
325 |  int bit, *openp, index;
    |                   ^~~~~

Fix this by moving CONFIG_MMC_OMAP to cover the rest codes
in the n8x0_mmc_callback().

Signed-off-by: Yongqiang Liu <liuyongqiang13@huawei.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-06-18 10:00:04 +02:00
..
2020-08-23 17:36:59 -05:00
2015-07-16 00:06:05 -07:00
2019-07-19 17:05:08 -07:00
2020-10-24 10:33:08 -07:00
2020-09-24 14:26:20 +03:00
2020-09-24 14:26:20 +03:00
2019-06-28 08:37:04 +08:00
2020-04-21 09:41:53 -07:00
2019-07-19 17:05:08 -07:00