summaryrefslogtreecommitdiffstats
path: root/drivers/phy
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2020-10-28 16:59:09 +0800
committerVinod Koul <vkoul@kernel.org>2020-10-28 21:53:48 +0530
commit25d76fed7ffecca47be0249a5d5ec0a5dd92af67 (patch)
tree9bb8e74a442a7da846454d724353add55168b77b /drivers/phy
parentfcea94ac6154545dd13b17c947c07f5e0a54c121 (diff)
downloadlinux-25d76fed7ffecca47be0249a5d5ec0a5dd92af67.tar.bz2
phy: cpcap-usb: Use IRQF_ONESHOT
Fixes coccicheck error: ./drivers/phy/motorola/phy-cpcap-usb.c:365:9-34: ERROR: Threaded IRQ with no primary handler requested without IRQF_ONESHOT Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Link: https://lore.kernel.org/r/1603875549-107500-1-git-send-email-zou_wei@huawei.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/phy')
-rw-r--r--drivers/phy/motorola/phy-cpcap-usb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c
index 089db0dea703..442522ba487f 100644
--- a/drivers/phy/motorola/phy-cpcap-usb.c
+++ b/drivers/phy/motorola/phy-cpcap-usb.c
@@ -364,7 +364,8 @@ static int cpcap_usb_init_irq(struct platform_device *pdev,
error = devm_request_threaded_irq(ddata->dev, irq, NULL,
cpcap_phy_irq_thread,
- IRQF_SHARED,
+ IRQF_SHARED |
+ IRQF_ONESHOT,
name, ddata);
if (error) {
dev_err(ddata->dev, "could not get irq %s: %i\n",