* [PATCH] ARM: msm: Silence warning when CONFIG_MMC=n
@ 2012-09-17 19:13 Stephen Boyd
0 siblings, 0 replies; only message in thread
From: Stephen Boyd @ 2012-09-17 19:13 UTC (permalink / raw)
To: David Brown, Daniel Walker, Bryan Huntsman
Cc: linux-kernel, linux-arm-msm, linux-arm-kernel
arch/arm/mach-msm/board-trout.c:67:6: warning: unused variable 'rc'
Just drop the #ifdef and do this unconditionally.
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
---
arch/arm/mach-msm/board-trout.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/mach-msm/board-trout.c b/arch/arm/mach-msm/board-trout.c
index 4ba0800..7861c1b 100644
--- a/arch/arm/mach-msm/board-trout.c
+++ b/arch/arm/mach-msm/board-trout.c
@@ -67,12 +67,9 @@ static void __init trout_init(void)
platform_add_devices(devices, ARRAY_SIZE(devices));
-#ifdef CONFIG_MMC
rc = trout_init_mmc(system_rev);
if (rc)
printk(KERN_CRIT "%s: MMC init failure (%d)\n", __func__, rc);
-#endif
-
}
static struct map_desc trout_io_desc[] __initdata = {
--
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-09-17 19:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-17 19:13 [PATCH] ARM: msm: Silence warning when CONFIG_MMC=n Stephen Boyd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).