Skip to content

Commit d9f843f

Browse files
committed
Merge tag 'optee-convert-platform-remove-callback-for-v6.10' of https://git.linaro.org/people/jens.wiklander/linux-tee into soc/drivers
OP-TEE Convert to platform remove callback returning void * tag 'optee-convert-platform-remove-callback-for-v6.10' of https://git.linaro.org/people/jens.wiklander/linux-tee: tee: optee: smc: Convert to platform remove callback returning void Link: https://lore.kernel.org/r/20240425072835.GA3258167@rayden Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents d1734cf + 5c79430 commit d9f843f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

drivers/tee/optee/smc_abi.c

+2-4
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ static optee_invoke_fn *get_invoke_func(struct device *dev)
14331433
* optee_remove is called by platform subsystem to alert the driver
14341434
* that it should release the device
14351435
*/
1436-
static int optee_smc_remove(struct platform_device *pdev)
1436+
static void optee_smc_remove(struct platform_device *pdev)
14371437
{
14381438
struct optee *optee = platform_get_drvdata(pdev);
14391439

@@ -1453,8 +1453,6 @@ static int optee_smc_remove(struct platform_device *pdev)
14531453
memunmap(optee->smc.memremaped_shm);
14541454

14551455
kfree(optee);
1456-
1457-
return 0;
14581456
}
14591457

14601458
/* optee_shutdown - Device Removal Routine
@@ -1806,7 +1804,7 @@ MODULE_DEVICE_TABLE(of, optee_dt_match);
18061804

18071805
static struct platform_driver optee_driver = {
18081806
.probe = optee_probe,
1809-
.remove = optee_smc_remove,
1807+
.remove_new = optee_smc_remove,
18101808
.shutdown = optee_shutdown,
18111809
.driver = {
18121810
.name = "optee",

0 commit comments

Comments
 (0)