Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zou Wei and committed by
Vinod Koul
25d76fed fcea94ac

+2 -1
+2 -1
drivers/phy/motorola/phy-cpcap-usb.c
··· 364 364 365 365 error = devm_request_threaded_irq(ddata->dev, irq, NULL, 366 366 cpcap_phy_irq_thread, 367 - IRQF_SHARED, 367 + IRQF_SHARED | 368 + IRQF_ONESHOT, 368 369 name, ddata); 369 370 if (error) { 370 371 dev_err(ddata->dev, "could not get irq %s: %i\n",