File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -928,10 +928,12 @@ static int dwc3_qcom_probe(struct platform_device *pdev)
928
928
interconnect_exit :
929
929
dwc3_qcom_interconnect_exit (qcom );
930
930
depopulate :
931
- if (np )
931
+ if (np ) {
932
932
of_platform_depopulate (& pdev -> dev );
933
- else
933
+ } else {
934
+ device_remove_software_node (& qcom -> dwc3 -> dev );
934
935
platform_device_del (qcom -> dwc3 );
936
+ }
935
937
platform_device_put (qcom -> dwc3 );
936
938
clk_disable :
937
939
for (i = qcom -> num_clocks - 1 ; i >= 0 ; i -- ) {
@@ -951,11 +953,12 @@ static void dwc3_qcom_remove(struct platform_device *pdev)
951
953
struct device * dev = & pdev -> dev ;
952
954
int i ;
953
955
954
- device_remove_software_node (& qcom -> dwc3 -> dev );
955
- if (np )
956
+ if (np ) {
956
957
of_platform_depopulate (& pdev -> dev );
957
- else
958
+ } else {
959
+ device_remove_software_node (& qcom -> dwc3 -> dev );
958
960
platform_device_del (qcom -> dwc3 );
961
+ }
959
962
platform_device_put (qcom -> dwc3 );
960
963
961
964
for (i = qcom -> num_clocks - 1 ; i >= 0 ; i -- ) {
You can’t perform that action at this time.
0 commit comments