提交 8fb256f1 编写于 作者: J Junhao He 提交者: Zheng Zengkai

coresight: trbe: Enable ACPI/Platform automatic module loading

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5YCYK

--------------------------------------------------------------------------

Lets add the MODULE_TABLE and platform id_table entries so that
the TRBE driver can attach to the ACPI platform device created by
the acpi trbe code.
Signed-off-by: NJunhao He <hejunhao3@huawei.com>
Reviewed-by: NXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 7709bf09
......@@ -1189,7 +1189,14 @@ static const struct of_device_id arm_trbe_of_match[] = {
};
MODULE_DEVICE_TABLE(of, arm_trbe_of_match);
static const struct platform_device_id arm_trbe_match[] = {
{ ARMV9_TRBE_PDEV_NAME, 0},
{}
};
MODULE_DEVICE_TABLE(platform, arm_trbe_match);
static struct platform_driver arm_trbe_driver = {
.id_table = arm_trbe_match,
.driver = {
.name = DRVNAME,
.of_match_table = of_match_ptr(arm_trbe_of_match),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册