File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -721,6 +721,8 @@ static void dwc3_core_setup_global_control(struct dwc3 *dwc)
721
721
dwc3_writel (dwc -> regs , DWC3_GCTL , reg );
722
722
}
723
723
724
+ static int dwc3_core_get_phy (struct dwc3 * dwc );
725
+
724
726
/**
725
727
* dwc3_core_init - Low-level initialization of DWC3 Core
726
728
* @dwc: Pointer to our controller context structure
@@ -759,6 +761,10 @@ static int dwc3_core_init(struct dwc3 *dwc)
759
761
if (ret )
760
762
goto err0 ;
761
763
764
+ ret = dwc3_core_get_phy (dwc );
765
+ if (ret )
766
+ goto err0 ;
767
+
762
768
dwc3_core_setup_global_control (dwc );
763
769
dwc3_core_num_eps (dwc );
764
770
@@ -1156,10 +1162,6 @@ static int dwc3_probe(struct platform_device *pdev)
1156
1162
platform_set_drvdata (pdev , dwc );
1157
1163
dwc3_cache_hwparams (dwc );
1158
1164
1159
- ret = dwc3_core_get_phy (dwc );
1160
- if (ret )
1161
- goto err0 ;
1162
-
1163
1165
spin_lock_init (& dwc -> lock );
1164
1166
1165
1167
pm_runtime_set_active (dev );
You can’t perform that action at this time.
0 commit comments