These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git] / kernel / drivers / usb / host / ehci-msm.c
index 275c92e..c4f84c8 100644 (file)
@@ -80,12 +80,12 @@ static int ehci_msm_probe(struct platform_device *pdev)
                return  -ENOMEM;
        }
 
-       hcd->irq = platform_get_irq(pdev, 0);
-       if (hcd->irq < 0) {
+       ret = platform_get_irq(pdev, 0);
+       if (ret < 0) {
                dev_err(&pdev->dev, "Unable to get IRQ resource\n");
-               ret = hcd->irq;
                goto put_hcd;
        }
+       hcd->irq = ret;
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        if (!res) {