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)
547547 return err ;
548548}
549549
550- static int ssi_remove (struct platform_device * pd )
550+ static void ssi_remove (struct platform_device * pd )
551551{
552552 struct hsi_controller * ssi = platform_get_drvdata (pd );
553553
@@ -561,8 +561,6 @@ static int ssi_remove(struct platform_device *pd)
561561 platform_set_drvdata (pd , NULL );
562562
563563 pm_runtime_disable (& pd -> dev );
564-
565- return 0 ;
566564}
567565
568566#ifdef CONFIG_PM
@@ -618,7 +616,7 @@ MODULE_DEVICE_TABLE(of, omap_ssi_of_match);
618616
619617static struct platform_driver ssi_pdriver = {
620618 .probe = ssi_probe ,
621- .remove = ssi_remove ,
619+ .remove_new = ssi_remove ,
622620 .driver = {
623621 .name = "omap_ssi" ,
624622 .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)
12241224 return err ;
12251225}
12261226
1227- static int ssi_port_remove (struct platform_device * pd )
1227+ static void ssi_port_remove (struct platform_device * pd )
12281228{
12291229 struct hsi_port * port = platform_get_drvdata (pd );
12301230 struct omap_ssi_port * omap_port = hsi_port_drvdata (port );
@@ -1251,8 +1251,6 @@ static int ssi_port_remove(struct platform_device *pd)
12511251
12521252 pm_runtime_dont_use_autosuspend (& pd -> dev );
12531253 pm_runtime_disable (& pd -> dev );
1254-
1255- return 0 ;
12561254}
12571255
12581256static int ssi_restore_divisor (struct omap_ssi_port * omap_port )
@@ -1387,7 +1385,7 @@ MODULE_DEVICE_TABLE(of, omap_ssi_port_of_match);
13871385
13881386struct platform_driver ssi_port_pdriver = {
13891387 .probe = ssi_port_probe ,
1390- .remove = ssi_port_remove ,
1388+ .remove_new = ssi_port_remove ,
13911389 .driver = {
13921390 .name = "omap_ssi_port" ,
13931391 .of_match_table = omap_ssi_port_of_match ,
You can’t perform that action at this time.
0 commit comments