diff mbox

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

Message ID 1306242202-9252-1-git-send-email-wanlong.gao@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Wanlong Gao May 24, 2011, 1:03 p.m. UTC
For archs that don't support NO_IRQ (such as mips),
provide a dummy value. Fix the build error for mips.

Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
---
 drivers/mmc/host/of_mmc_spi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Comments

Grant Likely May 27, 2011, 3:32 a.m. UTC | #1
On Tue, May 24, 2011 at 09:03:22PM +0800, Wanlong Gao wrote:
> For archs that don't support NO_IRQ (such as mips),
> provide a dummy value. Fix the build error for mips.
> 
> Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>

Acked-by: Grant Likely <grant.likely@secretlab.ca>
> ---
>  drivers/mmc/host/of_mmc_spi.c |    5 +++++
>  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 {
> -- 
> 1.7.4.1
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Chris Ball May 27, 2011, 3:44 a.m. UTC | #2
Hi,

On Tue, May 24 2011, Wanlong Gao wrote:
> For archs that don't support NO_IRQ (such as mips),
> provide a dummy value. Fix the build error for mips.
>
> Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
> ---
>  drivers/mmc/host/of_mmc_spi.c |    5 +++++
>  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 {

Thanks, queued for Linus with Grant's ACK.

- Chris.
diff mbox

Patch

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 {