diff options
author | Samuel Zou <zou_wei@huawei.com> | 2020-05-06 11:25:53 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-05-11 11:39:54 +0530 |
commit | 4f1738f4c24b4485b899ccd9dbdd4f2fcbe6af2d (patch) | |
tree | f7b87272f567b0ce779f8f27ecc5436898f33368 /drivers/soundwire | |
parent | f48f4fd9fefb1e3a2f6bc249aef88f951be58e17 (diff) |
soundwire: qcom: Use IRQF_ONESHOT
Fixes coccicheck error:
drivers/soundwire/qcom.c:815:7-32: ERROR: Threaded IRQ with
no primary handler requested without IRQF_ONESHOT
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Samuel Zou <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1588735553-34219-1-git-send-email-zou_wei@huawei.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/soundwire')
-rw-r--r-- | drivers/soundwire/qcom.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index e08a17c13f92..a2a35f780fc3 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -814,7 +814,8 @@ static int qcom_swrm_probe(struct platform_device *pdev) ret = devm_request_threaded_irq(dev, ctrl->irq, NULL, qcom_swrm_irq_handler, - IRQF_TRIGGER_RISING, + IRQF_TRIGGER_RISING | + IRQF_ONESHOT, "soundwire", ctrl); if (ret) { dev_err(dev, "Failed to request soundwire irq\n"); |