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: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Alexander Shiyan 2019-01-19 07:52:02 +03:00 committed by Jens Axboe
parent f3d5e4f18d
commit baac9ce1f3

View File

@ -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;
} }
/* /*