diff --git a/drivers/gpu/host1x-fence/dev.c b/drivers/gpu/host1x-fence/dev.c index 2861a76c..47807553 100644 --- a/drivers/gpu/host1x-fence/dev.c +++ b/drivers/gpu/host1x-fence/dev.c @@ -16,6 +16,7 @@ #include #include #include +#include #include "include/uapi/linux/host1x-fence.h" @@ -407,7 +408,11 @@ static const struct file_operations dev_file_fops = { .compat_ioctl = dev_file_ioctl, }; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0)) static char *host1x_fence_devnode(struct device *dev, umode_t *mode) +#else +static char *host1x_fence_devnode(const struct device *dev, umode_t *mode) +#endif { *mode = 0666; return NULL;