[PATCH v2] coresight: dummy: add missing MODULE_DEVICE_TABLE()

Leo Yan leo.yan at arm.com
Mon Jul 20 05:37:04 PDT 2026


On Mon, Jul 20, 2026 at 07:45:14PM +0800, Pengpeng Hou wrote:
> 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 at oss.qualcomm.com>
> Signed-off-by: Pengpeng Hou <pengpeng at iscas.ac.cn>

Reviewed-by: Leo Yan <leo.yan at arm.com>

> ---
> 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,
> 



More information about the linux-arm-kernel mailing list