[PATCH] Fix compile error for MMC_AT91

From: Jan Altenberg
Date: Fri Jul 13 2007 - 05:23:04 EST


Hi Andrew,

latest git doesn't compile for me with CONFIG_MMC_AT91 enabled:

/home/jan/work/linutronix/linux-2.6/drivers/mmc/host/at91_mci.c: In function `at91_mci_enable':
/home/jan/work/linutronix/linux-2.6/drivers/mmc/host/at91_mci.c:375: error: `AT91_MCI_RDPROOF' undeclared (first use in this function)
/home/jan/work/linutronix/linux-2.6/drivers/mmc/host/at91_mci.c:375: error: (Each undeclared identifier is reported only once
/home/jan/work/linutronix/linux-2.6/drivers/mmc/host/at91_mci.c:375: error: for each function it appears in.)
/home/jan/work/linutronix/linux-2.6/drivers/mmc/host/at91_mci.c:375: error: `AT91_MCI_WRPROOF' undeclared (first use in this function)
make[4]: *** [drivers/mmc/host/at91_mci.o] Error 1

This patch introduces the necessary defines (which are already present
in your tree).

Signed-off-by: Jan Altenberg <jan.altenberg@xxxxxxxxxxxxx>

---
include/asm-arm/arch-at91/at91_mci.h | 3 +++
1 file changed, 3 insertions(+)

Index: linux-2.6/include/asm-arm/arch-at91/at91_mci.h
===================================================================
--- linux-2.6.orig/include/asm-arm/arch-at91/at91_mci.h
+++ linux-2.6/include/asm-arm/arch-at91/at91_mci.h
@@ -26,6 +26,9 @@
#define AT91_MCI_MR 0x04 /* Mode Register */
#define AT91_MCI_CLKDIV (0xff << 0) /* Clock Divider */
#define AT91_MCI_PWSDIV (7 << 8) /* Power Saving Divider */
+#define AT91_MCI_RDPROOF (1 << 11) /* Read Proof Enable [SAM926[03] only] */
+#define AT91_MCI_WRPROOF (1 << 12) /* Write Proof Enable [SAM926[03] only] */
+#define AT91_MCI_PDCFBYTE (1 << 13) /* PDC Force Byte Transfer [SAM926[03] only] */
#define AT91_MCI_PDCPADV (1 << 14) /* PDC Padding Value */
#define AT91_MCI_PDCMODE (1 << 15) /* PDC-orientated Mode */
#define AT91_MCI_BLKLEN (0xfff << 18) /* Data Block Length */


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/