File tree Expand file tree Collapse file tree 6 files changed +13
-26
lines changed Expand file tree Collapse file tree 6 files changed +13
-26
lines changed Original file line number Diff line number Diff line change @@ -275,18 +275,16 @@ static int exynos_nocp_probe(struct platform_device *pdev)
275
275
return 0 ;
276
276
}
277
277
278
- static int exynos_nocp_remove (struct platform_device * pdev )
278
+ static void exynos_nocp_remove (struct platform_device * pdev )
279
279
{
280
280
struct exynos_nocp * nocp = platform_get_drvdata (pdev );
281
281
282
282
clk_disable_unprepare (nocp -> clk );
283
-
284
- return 0 ;
285
283
}
286
284
287
285
static struct platform_driver exynos_nocp_driver = {
288
286
.probe = exynos_nocp_probe ,
289
- .remove = exynos_nocp_remove ,
287
+ .remove_new = exynos_nocp_remove ,
290
288
.driver = {
291
289
.name = "exynos-nocp" ,
292
290
.of_match_table = exynos_nocp_id_match ,
Original file line number Diff line number Diff line change @@ -692,18 +692,16 @@ static int exynos_ppmu_probe(struct platform_device *pdev)
692
692
return 0 ;
693
693
}
694
694
695
- static int exynos_ppmu_remove (struct platform_device * pdev )
695
+ static void exynos_ppmu_remove (struct platform_device * pdev )
696
696
{
697
697
struct exynos_ppmu * info = platform_get_drvdata (pdev );
698
698
699
699
clk_disable_unprepare (info -> ppmu .clk );
700
-
701
- return 0 ;
702
700
}
703
701
704
702
static struct platform_driver exynos_ppmu_driver = {
705
703
.probe = exynos_ppmu_probe ,
706
- .remove = exynos_ppmu_remove ,
704
+ .remove_new = exynos_ppmu_remove ,
707
705
.driver = {
708
706
.name = "exynos-ppmu" ,
709
707
.of_match_table = exynos_ppmu_id_match ,
Original file line number Diff line number Diff line change @@ -467,7 +467,6 @@ static void exynos_bus_shutdown(struct platform_device *pdev)
467
467
devfreq_suspend_device (bus -> devfreq );
468
468
}
469
469
470
- #ifdef CONFIG_PM_SLEEP
471
470
static int exynos_bus_resume (struct device * dev )
472
471
{
473
472
struct exynos_bus * bus = dev_get_drvdata (dev );
@@ -495,11 +494,9 @@ static int exynos_bus_suspend(struct device *dev)
495
494
496
495
return 0 ;
497
496
}
498
- #endif
499
497
500
- static const struct dev_pm_ops exynos_bus_pm = {
501
- SET_SYSTEM_SLEEP_PM_OPS (exynos_bus_suspend , exynos_bus_resume )
502
- };
498
+ static DEFINE_SIMPLE_DEV_PM_OPS (exynos_bus_pm ,
499
+ exynos_bus_suspend , exynos_bus_resume ) ;
503
500
504
501
static const struct of_device_id exynos_bus_of_match [] = {
505
502
{ .compatible = "samsung,exynos-bus" , },
@@ -512,7 +509,7 @@ static struct platform_driver exynos_bus_platdrv = {
512
509
.shutdown = exynos_bus_shutdown ,
513
510
.driver = {
514
511
.name = "exynos-bus" ,
515
- .pm = & exynos_bus_pm ,
512
+ .pm = pm_sleep_ptr ( & exynos_bus_pm ) ,
516
513
.of_match_table = exynos_bus_of_match ,
517
514
},
518
515
};
Original file line number Diff line number Diff line change @@ -392,7 +392,7 @@ static int mtk_ccifreq_probe(struct platform_device *pdev)
392
392
return ret ;
393
393
}
394
394
395
- static int mtk_ccifreq_remove (struct platform_device * pdev )
395
+ static void mtk_ccifreq_remove (struct platform_device * pdev )
396
396
{
397
397
struct device * dev = & pdev -> dev ;
398
398
struct mtk_ccifreq_drv * drv ;
@@ -405,8 +405,6 @@ static int mtk_ccifreq_remove(struct platform_device *pdev)
405
405
regulator_disable (drv -> proc_reg );
406
406
if (drv -> sram_reg )
407
407
regulator_disable (drv -> sram_reg );
408
-
409
- return 0 ;
410
408
}
411
409
412
410
static const struct mtk_ccifreq_platform_data mt8183_platform_data = {
@@ -432,7 +430,7 @@ MODULE_DEVICE_TABLE(of, mtk_ccifreq_machines);
432
430
433
431
static struct platform_driver mtk_ccifreq_platdrv = {
434
432
.probe = mtk_ccifreq_probe ,
435
- .remove = mtk_ccifreq_remove ,
433
+ .remove_new = mtk_ccifreq_remove ,
436
434
.driver = {
437
435
.name = "mtk-ccifreq" ,
438
436
.of_match_table = mtk_ccifreq_machines ,
Original file line number Diff line number Diff line change @@ -459,13 +459,11 @@ static int rk3399_dmcfreq_probe(struct platform_device *pdev)
459
459
return ret ;
460
460
}
461
461
462
- static int rk3399_dmcfreq_remove (struct platform_device * pdev )
462
+ static void rk3399_dmcfreq_remove (struct platform_device * pdev )
463
463
{
464
464
struct rk3399_dmcfreq * dmcfreq = dev_get_drvdata (& pdev -> dev );
465
465
466
466
devfreq_event_disable_edev (dmcfreq -> edev );
467
-
468
- return 0 ;
469
467
}
470
468
471
469
static const struct of_device_id rk3399dmc_devfreq_of_match [] = {
@@ -476,7 +474,7 @@ MODULE_DEVICE_TABLE(of, rk3399dmc_devfreq_of_match);
476
474
477
475
static struct platform_driver rk3399_dmcfreq_driver = {
478
476
.probe = rk3399_dmcfreq_probe ,
479
- .remove = rk3399_dmcfreq_remove ,
477
+ .remove_new = rk3399_dmcfreq_remove ,
480
478
.driver = {
481
479
.name = "rk3399-dmc-freq" ,
482
480
.pm = & rk3399_dmcfreq_pm ,
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ static int sun8i_a33_mbus_probe(struct platform_device *pdev)
458
458
return dev_err_probe (dev , ret , err );
459
459
}
460
460
461
- static int sun8i_a33_mbus_remove (struct platform_device * pdev )
461
+ static void sun8i_a33_mbus_remove (struct platform_device * pdev )
462
462
{
463
463
struct sun8i_a33_mbus * priv = platform_get_drvdata (pdev );
464
464
unsigned long initial_freq = priv -> profile .initial_freq ;
@@ -475,8 +475,6 @@ static int sun8i_a33_mbus_remove(struct platform_device *pdev)
475
475
clk_rate_exclusive_put (priv -> clk_mbus );
476
476
clk_rate_exclusive_put (priv -> clk_dram );
477
477
clk_disable_unprepare (priv -> clk_bus );
478
-
479
- return 0 ;
480
478
}
481
479
482
480
static const struct sun8i_a33_mbus_variant sun50i_a64_mbus = {
@@ -497,7 +495,7 @@ static SIMPLE_DEV_PM_OPS(sun8i_a33_mbus_pm_ops,
497
495
498
496
static struct platform_driver sun8i_a33_mbus_driver = {
499
497
.probe = sun8i_a33_mbus_probe ,
500
- .remove = sun8i_a33_mbus_remove ,
498
+ .remove_new = sun8i_a33_mbus_remove ,
501
499
.driver = {
502
500
.name = "sun8i-a33-mbus" ,
503
501
.of_match_table = sun8i_a33_mbus_of_match ,
You can’t perform that action at this time.
0 commit comments