ASoC: Intel: cml_rt1011_rt5682: add missing .owner field
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 25 Jun 2020 19:12:53 +0000 (14:12 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 26 Jun 2020 12:35:12 +0000 (13:35 +0100)
This field is required for ASoC cards. Not setting it will result in a
module->name pointer being NULL and generate problems such as

cat /proc/asound/modules
 0 (efault)

Fixes: 17fe95d6df93 ('ASoC: Intel: boards: Add CML m/c using RT1011 and RT5682')
Reported-by: Jaroslav Kysela <perex@perex.cz>
Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200625191308.3322-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cml_rt1011_rt5682.c

index 189c908..6e8934f 100644 (file)
@@ -501,6 +501,7 @@ static struct snd_soc_codec_conf rt1011_conf[] = {
 /* Cometlake audio machine driver for RT1011 and RT5682 */
 static struct snd_soc_card snd_soc_card_cml = {
        .name = "cml_rt1011_rt5682",
+       .owner = THIS_MODULE,
        .dai_link = cml_rt1011_rt5682_dailink,
        .num_links = ARRAY_SIZE(cml_rt1011_rt5682_dailink),
        .codec_conf = rt1011_conf,