diff --git a/drivers/tegra/hwpm/os/linux/driver.c b/drivers/tegra/hwpm/os/linux/driver.c index 7f08e36..0d20054 100644 --- a/drivers/tegra/hwpm/os/linux/driver.c +++ b/drivers/tegra/hwpm/os/linux/driver.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -46,7 +47,11 @@ static const struct of_device_id tegra_soc_hwpm_of_match[] = { }; MODULE_DEVICE_TABLE(of, tegra_soc_hwpm_of_match); +#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)) static char *tegra_hwpm_get_devnode(struct device *dev, umode_t *mode) +#else +static char *tegra_hwpm_get_devnode(const struct device *dev, umode_t *mode) +#endif { if (!mode) { return NULL;