usb: ohci-platform: disable ohci for rk3288
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / ohci-platform.c
index c2669f185f658c76f74e9f5c8ec651cbb92ec397..c47e7ab2af4768283e3366db333060af8c616c76 100644 (file)
@@ -119,7 +119,7 @@ static int ohci_platform_probe(struct platform_device *dev)
        struct ohci_hcd *ohci;
        int err, irq, phy_num, clk = 0;
 
-       if (usb_disabled())
+       if (usb_disabled() || of_machine_is_compatible("rockchip,rk3288"))
                return -ENODEV;
 
        /*
@@ -250,6 +250,8 @@ static int ohci_platform_probe(struct platform_device *dev)
        }
        hcd->rsrc_start = res_mem->start;
        hcd->rsrc_len = resource_size(res_mem);
+       if (priv->num_phys == 1)
+               hcd->phy = priv->phys[0];
 
        err = usb_add_hcd(hcd, irq, IRQF_SHARED);
        if (err)