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 <johnliu@nvidia.com>
Change-Id: Icf8b3fce960318c129194330c694e47826c440ee
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2983673
Reviewed-by: Jonathan Hunter <jonathanh@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Johnny Liu
2023-09-22 06:45:18 +00:00
committed by mobile promotions
parent e45c6bc8a9
commit 6323c46280

View File

@@ -2,7 +2,7 @@
/*
* Host1x fence UAPI
*
* Copyright (c) 2022, NVIDIA Corporation.
* Copyright (c) 2022-2023, NVIDIA CORPORATION. All rights reserved.
*/
#include <linux/anon_inodes.h>
@@ -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);