diff mbox series

[-next,2/2] sound/soc: allow module autoloading for table board_ids

Message ID 20240821061955.2273782-3-lihongbo22@huawei.com (mailing list archive)
State Accepted
Commit 5f7c98b7519a3a847d9182bd99d57ea250032ca1
Headers show
Series allow modules autoloading | expand

Commit Message

Hongbo Li Aug. 21, 2024, 6:19 a.m. UTC
Add MODULE_DEVICE_TABLE(), so modules could be properly
autoloaded based on the alias from platform_device_id table.

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
---
 sound/soc/amd/acp/acp-sof-mach.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/sound/soc/amd/acp/acp-sof-mach.c b/sound/soc/amd/acp/acp-sof-mach.c
index fc59ea34e687..b3a702dcd991 100644
--- a/sound/soc/amd/acp/acp-sof-mach.c
+++ b/sound/soc/amd/acp/acp-sof-mach.c
@@ -158,6 +158,8 @@  static const struct platform_device_id board_ids[] = {
 	},
 	{ }
 };
+MODULE_DEVICE_TABLE(platform, board_ids);
+
 static struct platform_driver acp_asoc_audio = {
 	.driver = {
 		.name = "sof_mach",