Commit b9c350a0a9d3564d20f5301f472b8841f8934c7d

Authored by Wanlong Gao
Committed by Chris Ball
1 parent c44048dea2

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>

Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff

drivers/mmc/host/of_mmc_spi.c
... ... @@ -25,6 +25,11 @@
25 25 #include <linux/mmc/core.h>
26 26 #include <linux/mmc/host.h>
27 27  
  28 +/* For archs that don't support NO_IRQ (such as mips), provide a dummy value */
  29 +#ifndef NO_IRQ
  30 +#define NO_IRQ 0
  31 +#endif
  32 +
28 33 MODULE_LICENSE("GPL");
29 34  
30 35 enum {