Commit baac9ce1 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Jens Axboe

ata: pata_platform: Add IRQF_SHARED to IRQ flags

It's quite possible that multiple devices can be hooked up
to the same interrupt line with the processor. So add IRQF_SHARED
in request irq.
Acked-by: default avatarBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f3d5e4f1
...@@ -114,7 +114,7 @@ int __pata_platform_probe(struct device *dev, struct resource *io_res, ...@@ -114,7 +114,7 @@ int __pata_platform_probe(struct device *dev, struct resource *io_res,
*/ */
if (irq_res && irq_res->start > 0) { if (irq_res && irq_res->start > 0) {
irq = irq_res->start; irq = irq_res->start;
irq_flags = irq_res->flags & IRQF_TRIGGER_MASK; irq_flags = (irq_res->flags & IRQF_TRIGGER_MASK) | IRQF_SHARED;
} }
/* /*
......
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