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

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-4-liaochen4@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/tda7419.c

index e187d74a17376f5d1ca26ba360961e36617720c3..3914deb060cacf547887c99282af6a1b64b49172 100644 (file)
@@ -623,6 +623,7 @@ static const struct of_device_id tda7419_of_match[] = {
        { .compatible = "st,tda7419" },
        { },
 };
+MODULE_DEVICE_TABLE(of, tda7419_of_match);
 
 static struct i2c_driver tda7419_driver = {
        .driver = {