[PATCH] coresight: ctcu: publish OF module alias

From: Can Peng

Date: Tue Jul 14 2026 - 09:25:25 EST


The Coresight TMC Control Unit driver has an OF match table wired to
.of_match_table, but the table is not exported for module alias generation.

Add the MODULE_DEVICE_TABLE(of, ...) entry so modpost can generate OF
module alias information for OF based module autoloading when
CORESIGHT_CTCU is built as a module.

Fixes: f78d206f3d73 ("Coresight: Add Coresight TMC Control Unit driver")
Signed-off-by: Can Peng <pengcan@xxxxxxxxxx>
---
drivers/hwtracing/coresight/coresight-ctcu-core.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/hwtracing/coresight/coresight-ctcu-core.c b/drivers/hwtracing/coresight/coresight-ctcu-core.c
index 9043cad42f01..a7caa5b00b6d 100644
--- a/drivers/hwtracing/coresight/coresight-ctcu-core.c
+++ b/drivers/hwtracing/coresight/coresight-ctcu-core.c
@@ -295,6 +295,7 @@ static const struct of_device_id ctcu_match[] = {
{.compatible = "qcom,sa8775p-ctcu", .data = &sa8775p_cfgs},
{}
};
+MODULE_DEVICE_TABLE(of, ctcu_match);

static struct platform_driver ctcu_driver = {
.probe = ctcu_platform_probe,
--
2.53.0