diff --git a/drivers/tegra/hwpm/os/linux/driver.c b/drivers/tegra/hwpm/os/linux/driver.c index 0d29e7b..67edffe 100644 --- a/drivers/tegra/hwpm/os/linux/driver.c +++ b/drivers/tegra/hwpm/os/linux/driver.c @@ -112,7 +112,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;