aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-pxa
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-08-29 11:31:14 -0400
committerRob Herring <rob.herring@calxeda.com>2012-09-14 10:21:57 -0400
commit121f3f9b42eb1e1e9edb6ab0f8672e92dd610a31 (patch)
tree5b1abee308b1661a33284be1a1280f6804c7b822 /arch/arm/mach-pxa
parentef61440375b0b27661348922a6615e018c5ff143 (diff)
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 <rob.herring@calxeda.com> Cc: Samuel Ortiz <samuel@sortiz.org> Acked-by: Eric Miao <eric.y.miao@gmail.com> Cc: Haojian Zhuang <haojian.zhuang@gmail.com> Cc: netdev@vger.kernel.org Acked-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r--arch/arm/mach-pxa/devices.c15
1 files changed, 15 insertions, 0 deletions
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 = {
384 384
385static u64 pxaficp_dmamask = ~(u32)0; 385static u64 pxaficp_dmamask = ~(u32)0;
386 386
387static struct resource pxa_ir_resources[] = {
388 [0] = {
389 .start = IRQ_STUART,
390 .end = IRQ_STUART,
391 .flags = IORESOURCE_IRQ,
392 },
393 [1] = {
394 .start = IRQ_ICP,
395 .end = IRQ_ICP,
396 .flags = IORESOURCE_IRQ,
397 },
398};
399
387struct platform_device pxa_device_ficp = { 400struct platform_device pxa_device_ficp = {
388 .name = "pxa2xx-ir", 401 .name = "pxa2xx-ir",
389 .id = -1, 402 .id = -1,
403 .num_resources = ARRAY_SIZE(pxa_ir_resources),
404 .resource = pxa_ir_resources,
390 .dev = { 405 .dev = {
391 .dma_mask = &pxaficp_dmamask, 406 .dma_mask = &pxaficp_dmamask,
392 .coherent_dma_mask = 0xffffffff, 407 .coherent_dma_mask = 0xffffffff,