at91rm9200dk: fix warning: 'dk_mmc_data' defined but not used
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Fri, 19 Nov 2010 14:31:03 +0000 (22:31 +0800)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 30 Nov 2010 16:21:55 +0000 (17:21 +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-dk.c

index e14f0e165680ed39b5a9be326e661b9b415cb1bd..16dfd0c38472bdcff7050b820be7f7a0d7ed22f0 100644 (file)
@@ -91,10 +91,12 @@ static struct at91_cf_data __initdata dk_cf_data = {
        // .vcc_pin     = ... always powered
 };
 
+#ifndef CONFIG_MTD_AT91_DATAFLASH_CARD
 static struct at91_mmc_data __initdata dk_mmc_data = {
        .slot_b         = 0,
        .wire4          = 1,
 };
+#endif
 
 static struct spi_board_info dk_spi_devices[] = {
        {       /* DataFlash chip */