From 6323c462802d6cc9c34990ba60f6118fc7e60c0b Mon Sep 17 00:00:00 2001 From: Johnny Liu Date: Fri, 22 Sep 2023 06:45:18 +0000 Subject: [PATCH] gpu: host1x-fence: Share host1x compatible string Same compatible string can be shared between host1x_next and host1x_fence kernel modules so that those two modules will get automatically loaded. Bug 4291144 Signed-off-by: Johnny Liu Change-Id: Icf8b3fce960318c129194330c694e47826c440ee Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2983673 Reviewed-by: Jonathan Hunter GVS: Gerrit_Virtual_Submit --- drivers/gpu/host1x-fence/dev.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/host1x-fence/dev.c b/drivers/gpu/host1x-fence/dev.c index fc807cea..c9c2655d 100644 --- a/drivers/gpu/host1x-fence/dev.c +++ b/drivers/gpu/host1x-fence/dev.c @@ -2,7 +2,7 @@ /* * Host1x fence UAPI * - * Copyright (c) 2022, NVIDIA Corporation. + * Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved. */ #include @@ -473,6 +473,12 @@ unregister_chrdev_region: return err; } +static const struct of_device_id host1x_fence_of_match[] = { + { .compatible = "nvidia,tegra234-host1x" }, + { }, +}; +MODULE_DEVICE_TABLE(of, host1x_fence_of_match); + static int __init tegra_host1x_init(void) { return host1x_uapi_init(&uapi_data);