File tree Expand file tree Collapse file tree 10 files changed +20
-38
lines changed Expand file tree Collapse file tree 10 files changed +20
-38
lines changed Original file line number Diff line number Diff line change @@ -647,10 +647,9 @@ static int adreno_probe(struct platform_device *pdev)
647
647
return 0 ;
648
648
}
649
649
650
- static int adreno_remove (struct platform_device * pdev )
650
+ static void adreno_remove (struct platform_device * pdev )
651
651
{
652
652
component_del (& pdev -> dev , & a3xx_ops );
653
- return 0 ;
654
653
}
655
654
656
655
static void adreno_shutdown (struct platform_device * pdev )
@@ -765,7 +764,7 @@ static const struct dev_pm_ops adreno_pm_ops = {
765
764
766
765
static struct platform_driver adreno_driver = {
767
766
.probe = adreno_probe ,
768
- .remove = adreno_remove ,
767
+ .remove_new = adreno_remove ,
769
768
.shutdown = adreno_shutdown ,
770
769
.driver = {
771
770
.name = "adreno" ,
Original file line number Diff line number Diff line change @@ -1239,11 +1239,9 @@ static int dpu_dev_probe(struct platform_device *pdev)
1239
1239
return msm_drv_probe (& pdev -> dev , dpu_kms_init );
1240
1240
}
1241
1241
1242
- static int dpu_dev_remove (struct platform_device * pdev )
1242
+ static void dpu_dev_remove (struct platform_device * pdev )
1243
1243
{
1244
1244
component_master_del (& pdev -> dev , & msm_drm_ops );
1245
-
1246
- return 0 ;
1247
1245
}
1248
1246
1249
1247
static int __maybe_unused dpu_runtime_suspend (struct device * dev )
@@ -1318,7 +1316,7 @@ MODULE_DEVICE_TABLE(of, dpu_dt_match);
1318
1316
1319
1317
static struct platform_driver dpu_driver = {
1320
1318
.probe = dpu_dev_probe ,
1321
- .remove = dpu_dev_remove ,
1319
+ .remove_new = dpu_dev_remove ,
1322
1320
.shutdown = msm_drv_shutdown ,
1323
1321
.driver = {
1324
1322
.name = "msm_dpu" ,
Original file line number Diff line number Diff line change @@ -561,11 +561,9 @@ static int mdp4_probe(struct platform_device *pdev)
561
561
return msm_drv_probe (& pdev -> dev , mdp4_kms_init );
562
562
}
563
563
564
- static int mdp4_remove (struct platform_device * pdev )
564
+ static void mdp4_remove (struct platform_device * pdev )
565
565
{
566
566
component_master_del (& pdev -> dev , & msm_drm_ops );
567
-
568
- return 0 ;
569
567
}
570
568
571
569
static const struct of_device_id mdp4_dt_match [] = {
@@ -576,7 +574,7 @@ MODULE_DEVICE_TABLE(of, mdp4_dt_match);
576
574
577
575
static struct platform_driver mdp4_platform_driver = {
578
576
.probe = mdp4_probe ,
579
- .remove = mdp4_remove ,
577
+ .remove_new = mdp4_remove ,
580
578
.shutdown = msm_drv_shutdown ,
581
579
.driver = {
582
580
.name = "mdp4" ,
Original file line number Diff line number Diff line change @@ -942,11 +942,10 @@ static int mdp5_dev_probe(struct platform_device *pdev)
942
942
return msm_drv_probe (& pdev -> dev , mdp5_kms_init );
943
943
}
944
944
945
- static int mdp5_dev_remove (struct platform_device * pdev )
945
+ static void mdp5_dev_remove (struct platform_device * pdev )
946
946
{
947
947
DBG ("" );
948
948
component_master_del (& pdev -> dev , & msm_drm_ops );
949
- return 0 ;
950
949
}
951
950
952
951
static __maybe_unused int mdp5_runtime_suspend (struct device * dev )
@@ -987,7 +986,7 @@ MODULE_DEVICE_TABLE(of, mdp5_dt_match);
987
986
988
987
static struct platform_driver mdp5_driver = {
989
988
.probe = mdp5_dev_probe ,
990
- .remove = mdp5_dev_remove ,
989
+ .remove_new = mdp5_dev_remove ,
991
990
.shutdown = msm_drv_shutdown ,
992
991
.driver = {
993
992
.name = "msm_mdp" ,
Original file line number Diff line number Diff line change @@ -1296,16 +1296,14 @@ static int dp_display_probe(struct platform_device *pdev)
1296
1296
return rc ;
1297
1297
}
1298
1298
1299
- static int dp_display_remove (struct platform_device * pdev )
1299
+ static void dp_display_remove (struct platform_device * pdev )
1300
1300
{
1301
1301
struct dp_display_private * dp = dev_get_dp_display_private (& pdev -> dev );
1302
1302
1303
1303
component_del (& pdev -> dev , & dp_display_comp_ops );
1304
1304
dp_display_deinit_sub_modules (dp );
1305
1305
1306
1306
platform_set_drvdata (pdev , NULL );
1307
-
1308
- return 0 ;
1309
1307
}
1310
1308
1311
1309
static int dp_pm_resume (struct device * dev )
@@ -1415,7 +1413,7 @@ static const struct dev_pm_ops dp_pm_ops = {
1415
1413
1416
1414
static struct platform_driver dp_display_driver = {
1417
1415
.probe = dp_display_probe ,
1418
- .remove = dp_display_remove ,
1416
+ .remove_new = dp_display_remove ,
1419
1417
.driver = {
1420
1418
.name = "msm-dp-display" ,
1421
1419
.of_match_table = dp_dt_match ,
Original file line number Diff line number Diff line change @@ -161,14 +161,12 @@ static int dsi_dev_probe(struct platform_device *pdev)
161
161
return 0 ;
162
162
}
163
163
164
- static int dsi_dev_remove (struct platform_device * pdev )
164
+ static void dsi_dev_remove (struct platform_device * pdev )
165
165
{
166
166
struct msm_dsi * msm_dsi = platform_get_drvdata (pdev );
167
167
168
168
DBG ("" );
169
169
dsi_destroy (msm_dsi );
170
-
171
- return 0 ;
172
170
}
173
171
174
172
static const struct of_device_id dt_match [] = {
@@ -187,7 +185,7 @@ static const struct dev_pm_ops dsi_pm_ops = {
187
185
188
186
static struct platform_driver dsi_driver = {
189
187
.probe = dsi_dev_probe ,
190
- .remove = dsi_dev_remove ,
188
+ .remove_new = dsi_dev_remove ,
191
189
.driver = {
192
190
.name = "msm_dsi" ,
193
191
.of_match_table = dt_match ,
Original file line number Diff line number Diff line change @@ -551,15 +551,13 @@ static int msm_hdmi_dev_probe(struct platform_device *pdev)
551
551
return ret ;
552
552
}
553
553
554
- static int msm_hdmi_dev_remove (struct platform_device * pdev )
554
+ static void msm_hdmi_dev_remove (struct platform_device * pdev )
555
555
{
556
556
struct hdmi * hdmi = dev_get_drvdata (& pdev -> dev );
557
557
558
558
component_del (& pdev -> dev , & msm_hdmi_ops );
559
559
560
560
msm_hdmi_put_phy (hdmi );
561
-
562
- return 0 ;
563
561
}
564
562
565
563
static const struct of_device_id msm_hdmi_dt_match [] = {
@@ -574,7 +572,7 @@ static const struct of_device_id msm_hdmi_dt_match[] = {
574
572
575
573
static struct platform_driver msm_hdmi_driver = {
576
574
.probe = msm_hdmi_dev_probe ,
577
- .remove = msm_hdmi_dev_remove ,
575
+ .remove_new = msm_hdmi_dev_remove ,
578
576
.driver = {
579
577
.name = "hdmi_msm" ,
580
578
.of_match_table = msm_hdmi_dt_match ,
Original file line number Diff line number Diff line change @@ -177,11 +177,9 @@ static int msm_hdmi_phy_probe(struct platform_device *pdev)
177
177
return 0 ;
178
178
}
179
179
180
- static int msm_hdmi_phy_remove (struct platform_device * pdev )
180
+ static void msm_hdmi_phy_remove (struct platform_device * pdev )
181
181
{
182
182
pm_runtime_disable (& pdev -> dev );
183
-
184
- return 0 ;
185
183
}
186
184
187
185
static const struct of_device_id msm_hdmi_phy_dt_match [] = {
@@ -200,7 +198,7 @@ static const struct of_device_id msm_hdmi_phy_dt_match[] = {
200
198
201
199
static struct platform_driver msm_hdmi_phy_platform_driver = {
202
200
.probe = msm_hdmi_phy_probe ,
203
- .remove = msm_hdmi_phy_remove ,
201
+ .remove_new = msm_hdmi_phy_remove ,
204
202
.driver = {
205
203
.name = "msm_hdmi_phy" ,
206
204
.of_match_table = msm_hdmi_phy_dt_match ,
Original file line number Diff line number Diff line change @@ -1278,11 +1278,9 @@ static int msm_pdev_probe(struct platform_device *pdev)
1278
1278
return msm_drv_probe (& pdev -> dev , NULL );
1279
1279
}
1280
1280
1281
- static int msm_pdev_remove (struct platform_device * pdev )
1281
+ static void msm_pdev_remove (struct platform_device * pdev )
1282
1282
{
1283
1283
component_master_del (& pdev -> dev , & msm_drm_ops );
1284
-
1285
- return 0 ;
1286
1284
}
1287
1285
1288
1286
void msm_drv_shutdown (struct platform_device * pdev )
@@ -1303,7 +1301,7 @@ void msm_drv_shutdown(struct platform_device *pdev)
1303
1301
1304
1302
static struct platform_driver msm_platform_driver = {
1305
1303
.probe = msm_pdev_probe ,
1306
- .remove = msm_pdev_remove ,
1304
+ .remove_new = msm_pdev_remove ,
1307
1305
.shutdown = msm_drv_shutdown ,
1308
1306
.driver = {
1309
1307
.name = "msm" ,
Original file line number Diff line number Diff line change @@ -492,15 +492,13 @@ static int mdss_probe(struct platform_device *pdev)
492
492
return 0 ;
493
493
}
494
494
495
- static int mdss_remove (struct platform_device * pdev )
495
+ static void mdss_remove (struct platform_device * pdev )
496
496
{
497
497
struct msm_mdss * mdss = platform_get_drvdata (pdev );
498
498
499
499
of_platform_depopulate (& pdev -> dev );
500
500
501
501
msm_mdss_destroy (mdss );
502
-
503
- return 0 ;
504
502
}
505
503
506
504
static const struct msm_mdss_data sc7180_data = {
@@ -594,7 +592,7 @@ MODULE_DEVICE_TABLE(of, mdss_dt_match);
594
592
595
593
static struct platform_driver mdss_platform_driver = {
596
594
.probe = mdss_probe ,
597
- .remove = mdss_remove ,
595
+ .remove_new = mdss_remove ,
598
596
.driver = {
599
597
.name = "msm-mdss" ,
600
598
.of_match_table = mdss_dt_match ,
You can’t perform that action at this time.
0 commit comments