From ee08de61668d96c8832567368ad4d9af7c899a1c Mon Sep 17 00:00:00 2001 From: Jon Hunter Date: Mon, 13 Nov 2023 17:49:04 +0000 Subject: [PATCH] tegra: hwpm: Remove class owner The owner member of the class structure was removed in upstream Linux v6.4 because it was never used. Therefore, just remove this from the HWPM driver completely because it is not needed. Bug 4276500 Change-Id: I50f7e59e08edbea26f7ceaa701e4abfe5cc71c71 Signed-off-by: Jon Hunter Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3015339 (cherry picked from commit 13a731215494242d1c58eef3d9f83d9ddda74935) Reviewed-on: https://git-master.nvidia.com/r/c/linux-hwpm/+/3017316 Reviewed-by: Vedashree Vidwans --- drivers/tegra/hwpm/os/linux/driver.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/tegra/hwpm/os/linux/driver.c b/drivers/tegra/hwpm/os/linux/driver.c index 67edffe..d3d0039 100644 --- a/drivers/tegra/hwpm/os/linux/driver.c +++ b/drivers/tegra/hwpm/os/linux/driver.c @@ -23,7 +23,6 @@ #include #include #include -#include #include #include @@ -112,9 +111,6 @@ static int tegra_hwpm_probe(struct platform_device *pdev) hwpm_linux->pdev = pdev; hwpm_linux->dev = &pdev->dev; hwpm_linux->np = pdev->dev.of_node; -#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 4, 0)) - hwpm_linux->class.owner = THIS_MODULE; -#endif hwpm_linux->class.name = TEGRA_SOC_HWPM_MODULE_NAME; hwpm = &hwpm_linux->hwpm;