summaryrefslogtreecommitdiffstats
path: root/drivers/phy/motorola/phy-cpcap-usb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/phy/motorola/phy-cpcap-usb.c')
-rw-r--r--drivers/phy/motorola/phy-cpcap-usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/phy/motorola/phy-cpcap-usb.c b/drivers/phy/motorola/phy-cpcap-usb.c
index accaaaccb662..6601ad0dfb3a 100644
--- a/drivers/phy/motorola/phy-cpcap-usb.c
+++ b/drivers/phy/motorola/phy-cpcap-usb.c
@@ -310,7 +310,7 @@ static int cpcap_usb_init_irq(struct platform_device *pdev,
int irq, error;
irq = platform_get_irq_byname(pdev, name);
- if (!irq)
+ if (irq < 0)
return -ENODEV;
error = devm_request_threaded_irq(ddata->dev, irq, NULL,