Skip to contentSkip to conversation

drivers:mmc:add the NO_IRQ define to of_mmc_spi.c

PATCH In review Wanlong Gao 3 participants 3 messages May 24, 2011 – May 27, 2011 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers:mmc:add the NO_IRQ define to of_mmc_spi.c

For archs that don't support NO_IRQ (such as mips), provide a dummy value. Fix the build error for mips.

---
 drivers/mmc/host/of_mmc_spi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/mmc/host/of_mmc_spi.c +5 -0
index e2aecb7..ab66f24 100644
@@ -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 {
Signature · 1 line
1.7.4.1
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Wanlong Gao

For archs that don't support NO_IRQ (such as mips), provide a dummy value. Fix the build error for mips.

Quoted 23 lines
---
 drivers/mmc/host/of_mmc_spi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/mmc/host/of_mmc_spi.c +5 -0
index e2aecb7..ab66f24 100644
@@ -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 {
Signature · 1 line
1.7.4.1
#2 lore raw
In reply to Wanlong Gao

Hi,

Quoted 14 lines · Wanlong Gao

For archs that don't support NO_IRQ (such as mips), provide a dummy value. Fix the build error for mips.

---
 drivers/mmc/host/of_mmc_spi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
drivers/mmc/host/of_mmc_spi.c +0 -0
index e2aecb7..ab66f24 100644
@@ -25,6 +25,11 @@
 #include <linux/mmc/core.h>

drivers/mmc/host/of_mmc_spi.c line 35

Quoted 10 lines
drivers/mmc/host/of_mmc_spi.c +5 -0
 #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 {

Thanks, queued for Linus with Grant's ACK.

- Chris.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child