File tree 1 file changed +2
-4
lines changed
1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -1433,7 +1433,7 @@ static optee_invoke_fn *get_invoke_func(struct device *dev)
1433
1433
* optee_remove is called by platform subsystem to alert the driver
1434
1434
* that it should release the device
1435
1435
*/
1436
- static int optee_smc_remove (struct platform_device * pdev )
1436
+ static void optee_smc_remove (struct platform_device * pdev )
1437
1437
{
1438
1438
struct optee * optee = platform_get_drvdata (pdev );
1439
1439
@@ -1453,8 +1453,6 @@ static int optee_smc_remove(struct platform_device *pdev)
1453
1453
memunmap (optee -> smc .memremaped_shm );
1454
1454
1455
1455
kfree (optee );
1456
-
1457
- return 0 ;
1458
1456
}
1459
1457
1460
1458
/* optee_shutdown - Device Removal Routine
@@ -1806,7 +1804,7 @@ MODULE_DEVICE_TABLE(of, optee_dt_match);
1806
1804
1807
1805
static struct platform_driver optee_driver = {
1808
1806
.probe = optee_probe ,
1809
- .remove = optee_smc_remove ,
1807
+ .remove_new = optee_smc_remove ,
1810
1808
.shutdown = optee_shutdown ,
1811
1809
.driver = {
1812
1810
.name = "optee" ,
You can’t perform that action at this time.
0 commit comments