linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Fix compile error for MMC_AT91
@ 2007-07-13  9:23 Jan Altenberg
  0 siblings, 0 replies; only message in thread
From: Jan Altenberg @ 2007-07-13  9:23 UTC (permalink / raw)
  To: andrew; +Cc: lkml

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@linutronix.de>

---
 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 */



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-13  9:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13  9:23 [PATCH] Fix compile error for MMC_AT91 Jan Altenberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).