usb: common: of_usb_get_dr_mode to usb_get_dr_mode
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc3 / core.c
index 61a56357baf0e8130dcb4440da9d95eb1879fde6..407151465645b3216c7b0d22755763d9744084e7 100644 (file)
@@ -871,6 +871,7 @@ static int dwc3_probe(struct platform_device *pdev)
        hird_threshold = 12;
 
        dwc->maximum_speed = usb_get_maximum_speed(dev);
+       dwc->dr_mode = usb_get_dr_mode(dev);
 
        if (node) {
                dwc->has_lpm_erratum = of_property_read_bool(node,
@@ -886,7 +887,6 @@ static int dwc3_probe(struct platform_device *pdev)
 
                dwc->needs_fifo_resize = of_property_read_bool(node,
                                "tx-fifo-resize");
-               dwc->dr_mode = of_usb_get_dr_mode(node);
 
                dwc->disable_scramble_quirk = of_property_read_bool(node,
                                "snps,disable_scramble_quirk");