File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed
drivers/pci/controller/dwc Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ static int exynos_pcie_probe(struct platform_device *pdev)
375
375
return ret ;
376
376
}
377
377
378
- static int exynos_pcie_remove (struct platform_device * pdev )
378
+ static void exynos_pcie_remove (struct platform_device * pdev )
379
379
{
380
380
struct exynos_pcie * ep = platform_get_drvdata (pdev );
381
381
@@ -385,8 +385,6 @@ static int exynos_pcie_remove(struct platform_device *pdev)
385
385
phy_exit (ep -> phy );
386
386
exynos_pcie_deinit_clk_resources (ep );
387
387
regulator_bulk_disable (ARRAY_SIZE (ep -> supplies ), ep -> supplies );
388
-
389
- return 0 ;
390
388
}
391
389
392
390
static int exynos_pcie_suspend_noirq (struct device * dev )
@@ -431,7 +429,7 @@ static const struct of_device_id exynos_pcie_of_match[] = {
431
429
432
430
static struct platform_driver exynos_pcie_driver = {
433
431
.probe = exynos_pcie_probe ,
434
- .remove = exynos_pcie_remove ,
432
+ .remove_new = exynos_pcie_remove ,
435
433
.driver = {
436
434
.name = "exynos-pcie" ,
437
435
.of_match_table = exynos_pcie_of_match ,
Original file line number Diff line number Diff line change @@ -1311,7 +1311,7 @@ static int ks_pcie_probe(struct platform_device *pdev)
1311
1311
return ret ;
1312
1312
}
1313
1313
1314
- static int ks_pcie_remove (struct platform_device * pdev )
1314
+ static void ks_pcie_remove (struct platform_device * pdev )
1315
1315
{
1316
1316
struct keystone_pcie * ks_pcie = platform_get_drvdata (pdev );
1317
1317
struct device_link * * link = ks_pcie -> link ;
@@ -1323,13 +1323,11 @@ static int ks_pcie_remove(struct platform_device *pdev)
1323
1323
ks_pcie_disable_phy (ks_pcie );
1324
1324
while (num_lanes -- )
1325
1325
device_link_del (link [num_lanes ]);
1326
-
1327
- return 0 ;
1328
1326
}
1329
1327
1330
1328
static struct platform_driver ks_pcie_driver = {
1331
1329
.probe = ks_pcie_probe ,
1332
- .remove = ks_pcie_remove ,
1330
+ .remove_new = ks_pcie_remove ,
1333
1331
.driver = {
1334
1332
.name = "keystone-pcie" ,
1335
1333
.of_match_table = ks_pcie_of_match ,
Original file line number Diff line number Diff line change @@ -738,15 +738,13 @@ static int kirin_pcie_power_on(struct platform_device *pdev,
738
738
return ret ;
739
739
}
740
740
741
- static int kirin_pcie_remove (struct platform_device * pdev )
741
+ static void kirin_pcie_remove (struct platform_device * pdev )
742
742
{
743
743
struct kirin_pcie * kirin_pcie = platform_get_drvdata (pdev );
744
744
745
745
dw_pcie_host_deinit (& kirin_pcie -> pci -> pp );
746
746
747
747
kirin_pcie_power_off (kirin_pcie );
748
-
749
- return 0 ;
750
748
}
751
749
752
750
struct kirin_pcie_data {
@@ -815,7 +813,7 @@ static int kirin_pcie_probe(struct platform_device *pdev)
815
813
816
814
static struct platform_driver kirin_pcie_driver = {
817
815
.probe = kirin_pcie_probe ,
818
- .remove = kirin_pcie_remove ,
816
+ .remove_new = kirin_pcie_remove ,
819
817
.driver = {
820
818
.name = "kirin-pcie" ,
821
819
.of_match_table = kirin_pcie_match ,
You can’t perform that action at this time.
0 commit comments