]> git.itanic.dy.fi Git - linux-stable/commitdiff
ASoC: mediatek: mt6797-mt6351: Register to module device table
authorNícolas F. R. A. Prado <nfraprado@collabora.com>
Mon, 7 Nov 2022 16:04:31 +0000 (11:04 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 9 Nov 2022 13:44:25 +0000 (13:44 +0000)
Register the compatibles for this module on the module device table so
it can be automatically loaded when a matching device is found on the
system.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Chen-Yu Tsai <wenst@chromium.org>
Link: https://lore.kernel.org/r/20221107160437.740353-4-nfraprado@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/mediatek/mt6797/mt6797-mt6351.c

index d2f6213a6bfccffc764c9cd82754fa44039cf3b6..784c201b8fd4b88d51e1f8fa70fde815d6ebc43d 100644 (file)
@@ -242,6 +242,7 @@ static const struct of_device_id mt6797_mt6351_dt_match[] = {
        {.compatible = "mediatek,mt6797-mt6351-sound",},
        {}
 };
+MODULE_DEVICE_TABLE(of, mt6797_mt6351_dt_match);
 #endif
 
 static struct platform_driver mt6797_mt6351_driver = {