OSDN Git Service

ASoC: sti: sti_uniperif: add missing MODULE_DEVICE_TABLE
authorChen Lifu <chenlifu@huawei.com>
Fri, 9 Apr 2021 01:59:53 +0000 (09:59 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 13 Apr 2021 11:33:45 +0000 (12:33 +0100)
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Lifu <chenlifu@huawei.com>
Reviewed-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
Link: https://lore.kernel.org/r/20210409015953.259688-1-chenlifu@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sti/sti_uniperif.c

index 67315d9..e3561f0 100644 (file)
@@ -97,6 +97,7 @@ static const struct of_device_id snd_soc_sti_match[] = {
        },
        {},
 };
+MODULE_DEVICE_TABLE(of, snd_soc_sti_match);
 
 int  sti_uniperiph_reset(struct uniperif *uni)
 {