File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -547,7 +547,7 @@ static int ssi_probe(struct platform_device *pd)
547
547
return err ;
548
548
}
549
549
550
- static int ssi_remove (struct platform_device * pd )
550
+ static void ssi_remove (struct platform_device * pd )
551
551
{
552
552
struct hsi_controller * ssi = platform_get_drvdata (pd );
553
553
@@ -561,8 +561,6 @@ static int ssi_remove(struct platform_device *pd)
561
561
platform_set_drvdata (pd , NULL );
562
562
563
563
pm_runtime_disable (& pd -> dev );
564
-
565
- return 0 ;
566
564
}
567
565
568
566
#ifdef CONFIG_PM
@@ -618,7 +616,7 @@ MODULE_DEVICE_TABLE(of, omap_ssi_of_match);
618
616
619
617
static struct platform_driver ssi_pdriver = {
620
618
.probe = ssi_probe ,
621
- .remove = ssi_remove ,
619
+ .remove_new = ssi_remove ,
622
620
.driver = {
623
621
.name = "omap_ssi" ,
624
622
.pm = DEV_PM_OPS ,
Original file line number Diff line number Diff line change @@ -1224,7 +1224,7 @@ static int ssi_port_probe(struct platform_device *pd)
1224
1224
return err ;
1225
1225
}
1226
1226
1227
- static int ssi_port_remove (struct platform_device * pd )
1227
+ static void ssi_port_remove (struct platform_device * pd )
1228
1228
{
1229
1229
struct hsi_port * port = platform_get_drvdata (pd );
1230
1230
struct omap_ssi_port * omap_port = hsi_port_drvdata (port );
@@ -1251,8 +1251,6 @@ static int ssi_port_remove(struct platform_device *pd)
1251
1251
1252
1252
pm_runtime_dont_use_autosuspend (& pd -> dev );
1253
1253
pm_runtime_disable (& pd -> dev );
1254
-
1255
- return 0 ;
1256
1254
}
1257
1255
1258
1256
static int ssi_restore_divisor (struct omap_ssi_port * omap_port )
@@ -1387,7 +1385,7 @@ MODULE_DEVICE_TABLE(of, omap_ssi_port_of_match);
1387
1385
1388
1386
struct platform_driver ssi_port_pdriver = {
1389
1387
.probe = ssi_port_probe ,
1390
- .remove = ssi_port_remove ,
1388
+ .remove_new = ssi_port_remove ,
1391
1389
.driver = {
1392
1390
.name = "omap_ssi_port" ,
1393
1391
.of_match_table = omap_ssi_port_of_match ,
You can’t perform that action at this time.
0 commit comments