]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: fix module autoloading
authorLiao Chen <liaochen4@huawei.com>
Mon, 26 Aug 2024 08:49:24 +0000 (08:49 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 26 Aug 2024 14:52:09 +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-5-liaochen4@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/chv3-codec.c

index ab99effa68748d5261091c6624c72f319923aba9..40020500b1fe89949353a98560ab0e82f7737a0a 100644 (file)
@@ -26,6 +26,7 @@ static const struct of_device_id chv3_codec_of_match[] = {
        { .compatible = "google,chv3-codec", },
        { }
 };
+MODULE_DEVICE_TABLE(of, chv3_codec_of_match);
 
 static struct platform_driver chv3_codec_platform_driver = {
        .driver = {