Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] coresight: dummy: add missing MODULE_DEVICE_TABLE()
@ 2026-07-20 11:45 Pengpeng Hou
  2026-07-20 12:37 ` Leo Yan
  0 siblings, 1 reply; 2+ messages in thread
From: Pengpeng Hou @ 2026-07-20 11:45 UTC (permalink / raw)
  To: Suzuki K Poulose
  Cc: Mike Leach, James Clark, Leo Yan, Alexander Shishkin, Jie Gan,
	coresight, linux-arm-kernel, linux-kernel, Pengpeng Hou

The CoreSight dummy driver has an OF match table wired into its platform
driver, but does not export the table to module metadata. A modular build
therefore lacks OF aliases for automatic loading.

Export dummy_match with MODULE_DEVICE_TABLE().

Fixes: 9d3ba0b6c056 ("Coresight: Add coresight dummy driver")
Reviewed-by: Jie Gan <jie.gan@oss.qualcomm.com>
Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>
---
Changes since v1: https://lore.kernel.org/all/20260704121621.48544-1-pengpeng@iscas.ac.cn/
- add the requested Fixes tag
- carry Jie Gan's conditional Reviewed-by after making that change
- rebase onto v7.2-rc4

 drivers/hwtracing/coresight/coresight-dummy.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/hwtracing/coresight/coresight-dummy.c b/drivers/hwtracing/coresight/coresight-dummy.c
index c176a2f57300..04880d38feb7 100644
--- a/drivers/hwtracing/coresight/coresight-dummy.c
+++ b/drivers/hwtracing/coresight/coresight-dummy.c
@@ -212,6 +212,7 @@ static const struct of_device_id dummy_match[] = {
 	{.compatible = "arm,coresight-dummy-sink"},
 	{},
 };
+MODULE_DEVICE_TABLE(of, dummy_match);
 
 static struct platform_driver dummy_driver = {
 	.probe	= dummy_probe,



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-07-20 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-20 11:45 [PATCH v2] coresight: dummy: add missing MODULE_DEVICE_TABLE() Pengpeng Hou
2026-07-20 12:37 ` Leo Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox