linux/arch/arm/mach-omap2
Yongqiang Liu 7d2054b4ca 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-30 08:49:10 -04:00
..
2014-01-17 12:35:48 -08:00
2016-06-10 04:14:37 -07:00
2017-01-15 13:42:57 +01:00
2019-12-21 10:41:13 +01:00
2017-01-15 13:42:57 +01:00
2015-07-16 00:06:05 -07:00
2017-01-15 13:42:57 +01:00
2016-06-10 04:15:33 -07:00
2015-07-20 10:52:36 -07:00
2016-06-10 04:17:07 -07:00
2016-02-06 23:13:30 -08:00
2016-05-18 12:35:46 -07:00