Commit 88cee34b authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: Intel: bxt_rt298: add missing .owner field

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: 76016322 ('ASoC: Intel: Add Broxton-P machine driver')
Reported-by: default avatarJaroslav Kysela <perex@perex.cz>
Suggested-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarKai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20200625191308.3322-5-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent fb4b42f6
...@@ -565,6 +565,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card) ...@@ -565,6 +565,7 @@ static int bxt_card_late_probe(struct snd_soc_card *card)
/* broxton audio machine driver for SPT + RT298S */ /* broxton audio machine driver for SPT + RT298S */
static struct snd_soc_card broxton_rt298 = { static struct snd_soc_card broxton_rt298 = {
.name = "broxton-rt298", .name = "broxton-rt298",
.owner = THIS_MODULE,
.dai_link = broxton_rt298_dais, .dai_link = broxton_rt298_dais,
.num_links = ARRAY_SIZE(broxton_rt298_dais), .num_links = ARRAY_SIZE(broxton_rt298_dais),
.controls = broxton_controls, .controls = broxton_controls,
...@@ -580,6 +581,7 @@ static struct snd_soc_card broxton_rt298 = { ...@@ -580,6 +581,7 @@ static struct snd_soc_card broxton_rt298 = {
static struct snd_soc_card geminilake_rt298 = { static struct snd_soc_card geminilake_rt298 = {
.name = "geminilake-rt298", .name = "geminilake-rt298",
.owner = THIS_MODULE,
.dai_link = broxton_rt298_dais, .dai_link = broxton_rt298_dais,
.num_links = ARRAY_SIZE(broxton_rt298_dais), .num_links = ARRAY_SIZE(broxton_rt298_dais),
.controls = broxton_controls, .controls = broxton_controls,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment