From 121f3f9b42eb1e1e9edb6ab0f8672e92dd610a31 Mon Sep 17 00:00:00 2001 From: Rob Herring Date: Wed, 29 Aug 2012 10:31:14 -0500 Subject: net: pxaficp_ir: add irq resources In order to remove dependency on mach/irqs.h, add platform device resources for irqs. Signed-off-by: Rob Herring Cc: Samuel Ortiz Acked-by: Eric Miao Cc: Haojian Zhuang Cc: netdev@vger.kernel.org Acked-by: David S. Miller --- arch/arm/mach-pxa/devices.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'arch/arm/mach-pxa/devices.c') diff --git a/arch/arm/mach-pxa/devices.c b/arch/arm/mach-pxa/devices.c index 166eee5b8a70..339eb2a73681 100644 --- a/arch/arm/mach-pxa/devices.c +++ b/arch/arm/mach-pxa/devices.c @@ -384,9 +384,24 @@ struct platform_device pxa_device_asoc_platform = { static u64 pxaficp_dmamask = ~(u32)0; +static struct resource pxa_ir_resources[] = { + [0] = { + .start = IRQ_STUART, + .end = IRQ_STUART, + .flags = IORESOURCE_IRQ, + }, + [1] = { + .start = IRQ_ICP, + .end = IRQ_ICP, + .flags = IORESOURCE_IRQ, + }, +}; + struct platform_device pxa_device_ficp = { .name = "pxa2xx-ir", .id = -1, + .num_resources = ARRAY_SIZE(pxa_ir_resources), + .resource = pxa_ir_resources, .dev = { .dma_mask = &pxaficp_dmamask, .coherent_dma_mask = 0xffffffff, -- cgit v1.2.3-59-g8ed1b