]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ASoC: google: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 08:49:22 +0000 (08:49 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 30 Sep 2024 14:25:10 +0000 (16:25 +0200)
[ Upstream commit 8e1bb4a41aa78d6105e59186af3dcd545fc66e70 ]

Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded
based on the alias from of_device_id table.

Signed-off-by: Liao Chen <liaochen4@huawei.com>
Link: https://patch.msgid.link/20240826084924.368387-3-liaochen4@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/google/chv3-i2s.c

index 0f65134449066be38515e870d5edd49cda210252..462e970b954f10c4a78dcc5330e92dce4ee2e86c 100644 (file)
@@ -322,6 +322,7 @@ static const struct of_device_id chv3_i2s_of_match[] = {
        { .compatible = "google,chv3-i2s" },
        {},
 };
+MODULE_DEVICE_TABLE(of, chv3_i2s_of_match);
 
 static struct platform_driver chv3_i2s_driver = {
        .probe = chv3_i2s_probe,