File tree Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Expand file tree Collapse file tree 4 files changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,8 @@ static int cdns_plat_pcie_probe(struct platform_device *pdev)
128
128
}
129
129
130
130
err_init :
131
- pm_runtime_put_sync (dev );
132
-
133
131
err_get_sync :
132
+ pm_runtime_put_sync (dev );
134
133
pm_runtime_disable (dev );
135
134
cdns_pcie_disable_phy (cdns_plat_pcie -> pcie );
136
135
phy_count = cdns_plat_pcie -> pcie -> phy_count ;
Original file line number Diff line number Diff line change @@ -995,9 +995,8 @@ static int __init dra7xx_pcie_probe(struct platform_device *pdev)
995
995
return 0 ;
996
996
997
997
err_gpio :
998
- pm_runtime_put (dev );
999
-
1000
998
err_get_sync :
999
+ pm_runtime_put (dev );
1001
1000
pm_runtime_disable (dev );
1002
1001
dra7xx_pcie_disable_phy (dra7xx );
1003
1002
Original file line number Diff line number Diff line change @@ -1382,10 +1382,8 @@ static int qcom_pcie_probe(struct platform_device *pdev)
1382
1382
1383
1383
pm_runtime_enable (dev );
1384
1384
ret = pm_runtime_get_sync (dev );
1385
- if (ret < 0 ) {
1386
- pm_runtime_disable (dev );
1387
- return ret ;
1388
- }
1385
+ if (ret < 0 )
1386
+ goto err_pm_runtime_put ;
1389
1387
1390
1388
pci -> dev = dev ;
1391
1389
pci -> ops = & dw_pcie_ops ;
Original file line number Diff line number Diff line change @@ -986,7 +986,7 @@ static int rcar_pcie_probe(struct platform_device *pdev)
986
986
err = pm_runtime_get_sync (pcie -> dev );
987
987
if (err < 0 ) {
988
988
dev_err (pcie -> dev , "pm_runtime_get_sync failed\n" );
989
- goto err_pm_disable ;
989
+ goto err_pm_put ;
990
990
}
991
991
992
992
err = rcar_pcie_get_resources (host );
@@ -1057,8 +1057,6 @@ static int rcar_pcie_probe(struct platform_device *pdev)
1057
1057
1058
1058
err_pm_put :
1059
1059
pm_runtime_put (dev );
1060
-
1061
- err_pm_disable :
1062
1060
pm_runtime_disable (dev );
1063
1061
pci_free_resource_list (& host -> resources );
1064
1062
You can’t perform that action at this time.
0 commit comments