]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: allow module autoloading for table board_ids
authorHongbo Li <lihongbo22@huawei.com>
Wed, 21 Aug 2024 06:19:55 +0000 (14:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2024 14:25:08 +0000 (16:25 +0200)
[ Upstream commit 5f7c98b7519a3a847d9182bd99d57ea250032ca1 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/amd/acp/acp-sof-mach.c

index 354d0fc55299b296d8eba3f76c16b90c64a2bea3..0c5254c52b7945a2861f229e7cd9ed20bdb9bc0d 100644 (file)
@@ -162,6 +162,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",