Skip to content

Commit 25d76fe

Browse files
Zou Weivinodkoul
authored andcommitted
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>
1 parent fcea94a commit 25d76fe

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/phy/motorola/phy-cpcap-usb.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,8 @@ static int cpcap_usb_init_irq(struct platform_device *pdev,
364364

365365
error = devm_request_threaded_irq(ddata->dev, irq, NULL,
366366
cpcap_phy_irq_thread,
367-
IRQF_SHARED,
367+
IRQF_SHARED |
368+
IRQF_ONESHOT,
368369
name, ddata);
369370
if (error) {
370371
dev_err(ddata->dev, "could not get irq %s: %i\n",

0 commit comments

Comments
 (0)