Skip to content

Commit

Permalink
ASoC: allow module autoloading for table board_ids
Browse files Browse the repository at this point in the history
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>
Link: https://patch.msgid.link/20240821061955.2273782-3-lihongbo22@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Hongbo Li authored and Mark Brown committed Aug 21, 2024
1 parent 0e9fdab commit 5f7c98b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/amd/acp/acp-sof-mach.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5f7c98b

Please sign in to comment.