drivers/usb/host/ohci-nxp.c: adjust inconsistent IS_ERR and PTR_ERR
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / ohci-nxp.c
index a446386bf779208518b760ffcfb94cc346dc4f5b..c60066a636068addf10ad8b66539fd370ce6af71 100644 (file)
@@ -355,7 +355,7 @@ static int __devinit usb_hcd_nxp_probe(struct platform_device *pdev)
        usb_otg_clk = clk_get(&pdev->dev, "ck_usb_otg");
        if (IS_ERR(usb_otg_clk)) {
                dev_err(&pdev->dev, "failed to acquire USB DEV Clock\n");
-               ret = PTR_ERR(usb_dev_clk);
+               ret = PTR_ERR(usb_otg_clk);
                goto out6;
        }