mmc: of_mmc_spi: add NO_IRQ define to of_mmc_spi.c
authorWanlong Gao <[email protected]>
Tue, 24 May 2011 13:03:22 +0000 (21:03 +0800)
committerChris Ball <[email protected]>
Sun, 19 Jun 2011 02:18:00 +0000 (22:18 -0400)
Provide a dummy value of NO_IRQ for architectures that don't support
it (such as MIPS).  Fixes the build error for MIPS.

Signed-off-by: Wanlong Gao <[email protected]>
Acked-by: Grant Likely <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
drivers/mmc/host/of_mmc_spi.c

index e2aecb7f1d5cfe32aab9ffe35aabfbe0ba9a643c..ab66f2454dc48fbc5fe2d68fe51b1d2611de1f7c 100644 (file)
 #include <linux/mmc/core.h>
 #include <linux/mmc/host.h>
 
+/* For archs that don't support NO_IRQ (such as mips), provide a dummy value */
+#ifndef NO_IRQ
+#define NO_IRQ 0
+#endif
+
 MODULE_LICENSE("GPL");
 
 enum {