at91rm9200ek: fix warning: 'ek_mmc_data' defined but not used
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 19 Nov 2010 14:31:35 +0000 (22:31 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 30 Nov 2010 16:22:07 +0000 (17:22 +0100)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Andrew Victor <linux@maxim.org.za>
arch/arm/mach-at91/board-ek.c

index 56e92c4..6203cdf 100644 (file)
@@ -84,12 +84,14 @@ static struct at91_udc_data __initdata ek_udc_data = {
        .pullup_pin     = AT91_PIN_PD5,
 };
 
        .pullup_pin     = AT91_PIN_PD5,
 };
 
+#ifndef CONFIG_MTD_AT91_DATAFLASH_CARD
 static struct at91_mmc_data __initdata ek_mmc_data = {
        .det_pin        = AT91_PIN_PB27,
        .slot_b         = 0,
        .wire4          = 1,
        .wp_pin         = AT91_PIN_PA17,
 };
 static struct at91_mmc_data __initdata ek_mmc_data = {
        .det_pin        = AT91_PIN_PB27,
        .slot_b         = 0,
        .wire4          = 1,
        .wp_pin         = AT91_PIN_PA17,
 };
+#endif
 
 static struct spi_board_info ek_spi_devices[] = {
        {       /* DataFlash chip */
 
 static struct spi_board_info ek_spi_devices[] = {
        {       /* DataFlash chip */