aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWanlong Gao <wanlong.gao@gmail.com>2011-05-24 21:03:22 +0800
committerChris Ball <cjb@laptop.org>2011-06-18 22:18:00 -0400
commitb9c350a0a9d3564d20f5301f472b8841f8934c7d (patch)
treeb3f71f42b1a4876ea325b10a7ca7d26d378b9272
parentc44048dea28b3febd38417f36f7b2924d93f9bb2 (diff)
downloadkernel_goldelico_gta04-b9c350a0a9d3564d20f5301f472b8841f8934c7d.zip
kernel_goldelico_gta04-b9c350a0a9d3564d20f5301f472b8841f8934c7d.tar.gz
kernel_goldelico_gta04-b9c350a0a9d3564d20f5301f472b8841f8934c7d.tar.bz2
mmc: of_mmc_spi: add NO_IRQ define to of_mmc_spi.c
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 <wanlong.gao@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r--drivers/mmc/host/of_mmc_spi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/mmc/host/of_mmc_spi.c b/drivers/mmc/host/of_mmc_spi.c
index e2aecb7..ab66f24 100644
--- a/drivers/mmc/host/of_mmc_spi.c
+++ b/drivers/mmc/host/of_mmc_spi.c
@@ -25,6 +25,11 @@
#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 {