diff --git a/drivers/tegra/hwpm/os/linux/driver.c b/drivers/tegra/hwpm/os/linux/driver.c index aca2006..4f50cb3 100644 --- a/drivers/tegra/hwpm/os/linux/driver.c +++ b/drivers/tegra/hwpm/os/linux/driver.c @@ -113,7 +113,9 @@ 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;