summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorFabio Estevam2015-01-14 19:39:15 +0100
committerMark Brown2015-01-14 19:48:54 +0100
commit7a3a907022439524704caecb717639aea2f1ef9c (patch)
tree39675009d0823e5201d2f0ad57e2ea4fdf183aac /sound/soc
parentASoC: fsl_ssi: Change irq type to 'int' (diff)
downloadkernel-qcow2-linux-7a3a907022439524704caecb717639aea2f1ef9c.tar.gz
kernel-qcow2-linux-7a3a907022439524704caecb717639aea2f1ef9c.tar.xz
kernel-qcow2-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')
-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)