usb: common: of_usb_get_dr_mode to usb_get_dr_mode
[firefly-linux-kernel-4.4.55.git] / drivers / usb / dwc3 / dwc3-st.c
index 02d47d50905ba47c78f7670148d50868d6672a0b..5c0adb9c6fb27baa778615f17705ac6ab7896079 100644 (file)
@@ -268,7 +268,7 @@ static int st_dwc3_probe(struct platform_device *pdev)
                goto undo_softreset;
        }
 
-       dwc3_data->dr_mode = of_usb_get_dr_mode(child_pdev->dev.of_node);
+       dwc3_data->dr_mode = usb_get_dr_mode(&child_pdev->dev);
 
        /*
         * Configure the USB port as device or host according to the static