]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: google: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 08:49:22 +0000 (08:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Aug 2024 14:52:07 +0000 (15:52 +0100)
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>
sound/soc/google/chv3-i2s.c

index 08e558f24af8657408823970f65a68bc85395594..0ff24653d49f47fcc3c9d5a96b99ffca9d11effe 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,