Commit caaf45a6 authored by Michael Karcher's avatar Michael Karcher Committed by David S. Miller

net-next: ax88796: set IRQF_SHARED flag when IRQ resource is marked as shareable

On the Amiga X-Surf100, the network card interrupt is shared with many
other interrupt sources, so requires the IRQF_SHARED flag to register.
Signed-off-by: default avatarMichael Karcher <kernel@mkarcher.dialup.fu-berlin.de>
Signed-off-by: default avatarMichael Schmitz <schmitzmic@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cec4c1c5
...@@ -872,6 +872,9 @@ static int ax_probe(struct platform_device *pdev) ...@@ -872,6 +872,9 @@ static int ax_probe(struct platform_device *pdev)
dev->irq = irq->start; dev->irq = irq->start;
ax->irqflags = irq->flags & IRQF_TRIGGER_MASK; ax->irqflags = irq->flags & IRQF_TRIGGER_MASK;
if (irq->flags & IORESOURCE_IRQ_SHAREABLE)
ax->irqflags |= IRQF_SHARED;
mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); mem = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!mem) { if (!mem) {
dev_err(&pdev->dev, "no MEM specified\n"); dev_err(&pdev->dev, "no MEM specified\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment