summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2019-01-19 07:52:02 +0300
committerJens Axboe <axboe@kernel.dk>2019-02-08 06:42:55 -0700
commitbaac9ce1f333260485e9084809e909d3ce6c69dd (patch)
treebf39850e547bb67fa53023eedba412e05c1f638c
parentf3d5e4f18dba18d7c2303dda68b9dbcf5ccc05cd (diff)
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>
-rw-r--r--drivers/ata/pata_platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/pata_platform.c b/drivers/ata/pata_platform.c
index 31cd0f39b0a7..5aba691f09af 100644
--- a/drivers/ata/pata_platform.c
+++ b/drivers/ata/pata_platform.c
@@ -114,7 +114,7 @@ int __pata_platform_probe(struct device *dev, struct resource *io_res,
*/
if (irq_res && irq_res->start > 0) {
irq = irq_res->start;
- irq_flags = irq_res->flags & IRQF_TRIGGER_MASK;
+ irq_flags = (irq_res->flags & IRQF_TRIGGER_MASK) | IRQF_SHARED;
}
/*