usb: ehci-platform: use no relinquish port quirk only for rk3288
[firefly-linux-kernel-4.4.55.git] / drivers / usb / host / ehci-platform.c
index 7866008c4350e4d9808753ca132ac329034df59f..bedf6565caa4a06817512827e33f1a4ff16532dd 100644 (file)
@@ -214,7 +214,8 @@ static int ehci_platform_probe(struct platform_device *dev)
                                          "has-transaction-translator"))
                        hcd->has_tt = 1;
 
-               if (of_property_read_bool(dev->dev.of_node,
+               if (of_machine_is_compatible("rockchip,rk3288") &&
+                   of_property_read_bool(dev->dev.of_node,
                                          "rockchip-relinquish-port"))
                        ehci_platform_hc_driver.relinquish_port =
                                          ehci_rockchip_relinquish_port;