linux-mips
[Top] [All Lists]

[PATCH 1/4] MIPS: lantiq: move IRQ_RES macro to a headerfile

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH 1/4] MIPS: lantiq: move IRQ_RES macro to a headerfile
From: John Crispin <blogic@openwrt.org>
Date: Mon, 9 May 2011 18:49:07 +0200
Cc: John Crispin <blogic@openwrt.org>, linux-mips@linux-mips.org
In-reply-to: <1304959750-8557-1-git-send-email-blogic@openwrt.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1304959750-8557-1-git-send-email-blogic@openwrt.org>
Sender: linux-mips-bounce@linux-mips.org
The IRQ_RES macro should be located at a place where other *.c files can easily
reuse it.

Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-mips@linux-mips.org
---
 arch/mips/lantiq/devices.c |    3 ---
 arch/mips/lantiq/devices.h |    3 +++
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/mips/lantiq/devices.c b/arch/mips/lantiq/devices.c
index e758863..7b82c34 100644
--- a/arch/mips/lantiq/devices.c
+++ b/arch/mips/lantiq/devices.c
@@ -28,9 +28,6 @@
 
 #include "devices.h"
 
-#define IRQ_RES(resname, irq) \
-       {.name = #resname, .start = (irq), .flags = IORESOURCE_IRQ}
-
 /* nor flash */
 static struct resource ltq_nor_resource = {
        .name   = "nor",
diff --git a/arch/mips/lantiq/devices.h b/arch/mips/lantiq/devices.h
index 069006c..2947bb1 100644
--- a/arch/mips/lantiq/devices.h
+++ b/arch/mips/lantiq/devices.h
@@ -12,6 +12,9 @@
 #include <lantiq_platform.h>
 #include <linux/mtd/physmap.h>
 
+#define IRQ_RES(resname, irq) \
+       {.name = #resname, .start = (irq), .flags = IORESOURCE_IRQ}
+
 extern void ltq_register_nor(struct physmap_flash_data *data);
 extern void ltq_register_wdt(void);
 extern void ltq_register_asc(int port);
-- 
1.7.2.3


<Prev in Thread] Current Thread [Next in Thread>