summaryrefslogtreecommitdiffstats
path: root/sound/soc/fsl
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2015-01-14 16:39:15 -0200
committerMark Brown <broonie@kernel.org>2015-01-14 18:48:54 +0000
commit7a3a907022439524704caecb717639aea2f1ef9c (patch)
tree39675009d0823e5201d2f0ad57e2ea4fdf183aac /sound/soc/fsl
parent9e446ad500db0fd0823990409da17fde9e9cffdc (diff)
downloadtalos-op-linux-7a3a907022439524704caecb717639aea2f1ef9c.tar.gz
talos-op-linux-7a3a907022439524704caecb717639aea2f1ef9c.zip
ASoC: fsl: imx-spdif: Set the card owner field
Set the card owner field to avoid getting a kernel crash when the imx-spdif is unloaded while the playback is active. Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/fsl')
-rw-r--r--sound/soc/fsl/imx-spdif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/fsl/imx-spdif.c b/sound/soc/fsl/imx-spdif.c
index e94704f1b9ee..33da26a12457 100644
--- a/sound/soc/fsl/imx-spdif.c
+++ b/sound/soc/fsl/imx-spdif.c
@@ -60,6 +60,7 @@ static int imx_spdif_audio_probe(struct platform_device *pdev)
data->card.dev = &pdev->dev;
data->card.dai_link = &data->dai;
data->card.num_links = 1;
+ data->card.owner = THIS_MODULE;
ret = snd_soc_of_parse_card_name(&data->card, "model");
if (ret)
OpenPOWER on IntegriCloud