diff options
author | Tony Lindgren <tony@atomide.com> | 2012-03-06 14:49:28 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-03-06 14:49:28 -0500 |
commit | 49b87c6db100cf9802be22a1b83a72cbcadaa76c (patch) | |
tree | 8ece87eb683b66bbe5c0e252590c4f2cfed88712 | |
parent | e48f814e6366d36a0495f6aa2838a064304f6406 (diff) |
ARM: OMAP2: Fix section warning for n8x0 when CONFIG_MMC_OMAP is not set
Otherwise we get:
arch/arm/mach-omap2/board-n8x0.c:39:12: warning:
'slot1_cover_open' defined but not used [-Wunused-variable]
arch/arm/mach-omap2/board-n8x0.c:40:12: warning:
'slot2_cover_open' defined but not used [-Wunused-variable]
arch/arm/mach-omap2/board-n8x0.c:41:23: warning:
'mmc_device' defined but not used [-Wunused-variable]
Reported-by: Russell King <linux@arm.linux.org.uk>
Signed-off-by: Tony Lindgren <tony@atomide.com>
-rw-r--r-- | arch/arm/mach-omap2/board-n8x0.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/board-n8x0.c b/arch/arm/mach-omap2/board-n8x0.c index 42a4d11fad23..6bb67461a11c 100644 --- a/arch/arm/mach-omap2/board-n8x0.c +++ b/arch/arm/mach-omap2/board-n8x0.c | |||
@@ -36,10 +36,6 @@ | |||
36 | 36 | ||
37 | #include "mux.h" | 37 | #include "mux.h" |
38 | 38 | ||
39 | static int slot1_cover_open; | ||
40 | static int slot2_cover_open; | ||
41 | static struct device *mmc_device; | ||
42 | |||
43 | #define TUSB6010_ASYNC_CS 1 | 39 | #define TUSB6010_ASYNC_CS 1 |
44 | #define TUSB6010_SYNC_CS 4 | 40 | #define TUSB6010_SYNC_CS 4 |
45 | #define TUSB6010_GPIO_INT 58 | 41 | #define TUSB6010_GPIO_INT 58 |
@@ -211,6 +207,10 @@ static struct omap_onenand_platform_data board_onenand_data[] = { | |||
211 | #define N810_EMMC_VSD_GPIO 23 | 207 | #define N810_EMMC_VSD_GPIO 23 |
212 | #define N810_EMMC_VIO_GPIO 9 | 208 | #define N810_EMMC_VIO_GPIO 9 |
213 | 209 | ||
210 | static int slot1_cover_open; | ||
211 | static int slot2_cover_open; | ||
212 | static struct device *mmc_device; | ||
213 | |||
214 | static int n8x0_mmc_switch_slot(struct device *dev, int slot) | 214 | static int n8x0_mmc_switch_slot(struct device *dev, int slot) |
215 | { | 215 | { |
216 | #ifdef CONFIG_MMC_DEBUG | 216 | #ifdef CONFIG_MMC_DEBUG |