Commit ce4fbc28 authored by Junhao He's avatar Junhao He Committed by Zheng Zengkai
Browse files

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: default avatarJunhao He <hejunhao3@huawei.com>
Reviewed-by: default avatarXiongfeng Wang <wangxiongfeng2@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 22c03d7a
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -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),