The IRQ_RES macro should be located at a place where other *.c files can easily reuse it. Signed-off-by: John Crispin <blogic@xxxxxxxxxxx> Cc: linux-mips@xxxxxxxxxxxxxx --- 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