Skip to contentSkip to conversation

msm: trout: Remove extern declaration from source file

PATCH In review Sahitya Tummala 1 participant 1 message Jul 29, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 msm: trout: Remove extern declaration from source file

Add msm_add_sdcc() prototype to mach/board.h to fix the checkpatch warning.

---
 arch/arm/mach-msm/board-trout-mmc.c    |    3 ---
 arch/arm/mach-msm/include/mach/board.h |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-msm/board-trout-mmc.c +0 -3
index 7a773f8..0ba3e92 100644
@@ -26,9 +26,6 @@
 
 #define DEBUG_SDSLOT_VDD 1
 
-extern int msm_add_sdcc(unsigned int controller, struct mmc_platform_data *plat,
-			unsigned int stat_irq, unsigned long stat_irq_flags);
-
 /* ---- COMMON ---- */
 static void config_gpio_table(uint32_t *table, int len)
 {
arch/arm/mach-msm/include/mach/board.h +3 -0
index e302fbd..a3efb0d 100644
@@ -18,6 +18,7 @@
 #define __ASM_ARCH_MSM_BOARD_H
 
 #include <linux/types.h>
+#include <mach/mmc.h>
 
 /* platform device data structures */
 
@@ -40,5 +41,7 @@ void __init msm_init_irq(void);
 void __init msm_init_gpio(void);
 void __init msm_clock_init(struct clk *clock_tbl, unsigned num_clocks);
 void __init msm_acpu_clock_init(struct msm_acpu_clock_platform_data *);
+int __init msm_add_sdcc(unsigned int controller, struct mmc_platform_data *plat,
+			unsigned int stat_irq, unsigned long stat_irq_flags);
 
 #endif
Signature · 5 lines
1.7.1

--
Consultant for Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum.