Commit 25d76fed authored by Zou Wei's avatar Zou Wei Committed by Vinod Koul

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: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarZou Wei <zou_wei@huawei.com>
Link: https://lore.kernel.org/r/1603875549-107500-1-git-send-email-zou_wei@huawei.comSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent fcea94ac
...@@ -364,7 +364,8 @@ static int cpcap_usb_init_irq(struct platform_device *pdev, ...@@ -364,7 +364,8 @@ static int cpcap_usb_init_irq(struct platform_device *pdev,
error = devm_request_threaded_irq(ddata->dev, irq, NULL, error = devm_request_threaded_irq(ddata->dev, irq, NULL,
cpcap_phy_irq_thread, cpcap_phy_irq_thread,
IRQF_SHARED, IRQF_SHARED |
IRQF_ONESHOT,
name, ddata); name, ddata);
if (error) { if (error) {
dev_err(ddata->dev, "could not get irq %s: %i\n", dev_err(ddata->dev, "could not get irq %s: %i\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment