From 9410c97b902a759de23d10c0a44614bfff736482 Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Tue, 5 Nov 2024 06:18:13 +0000 Subject: [PATCH] crypto: tegra: Fix build for Linux v6.11 In Linux v6.11, the 'platform_driver' structure 'remove' callback was updated to return void instead of 'int'. Fix the build for Linux v6.11 by simply removing the 'remove' callback for the Tegra SE KDS driver because it does nothing. Bug 4749580 Change-Id: Ic335005a99ff7387053bfb78c994bbabafba7b81 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3242554 Reviewed-by: Akhil R GVS: buildbot_gerritrpt Reviewed-by: svcacv --- drivers/crypto/tegra/tegra-se-kds.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/crypto/tegra/tegra-se-kds.c b/drivers/crypto/tegra/tegra-se-kds.c index d524ea45..4e99dfe0 100644 --- a/drivers/crypto/tegra/tegra-se-kds.c +++ b/drivers/crypto/tegra/tegra-se-kds.c @@ -210,11 +210,6 @@ static int tegra_kds_probe(struct platform_device *pdev) return tegra_kds_region_setup(kds); } -static int tegra_kds_remove(struct platform_device *pdev) -{ - return 0; -} - static const struct of_device_id tegra_kds_of_match[] = { { .compatible = "nvidia,tegra264-kds", @@ -229,7 +224,6 @@ static struct platform_driver tegra_kds_driver = { .of_match_table = tegra_kds_of_match, }, .probe = tegra_kds_probe, - .remove = tegra_kds_remove, }; module_platform_driver(tegra_kds_driver);