Skip to content

Commit

Permalink
mmc: of_mmc_spi: add NO_IRQ define to of_mmc_spi.c
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
gaowanlong authored and cjb committed Jun 19, 2011
1 parent c44048d commit b9c350a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/mmc/host/of_mmc_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b9c350a

Please sign in to comment.