Commit 7a3a9070 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 9e446ad5
...@@ -60,6 +60,7 @@ static int imx_spdif_audio_probe(struct platform_device *pdev) ...@@ -60,6 +60,7 @@ static int imx_spdif_audio_probe(struct platform_device *pdev)
data->card.dev = &pdev->dev; data->card.dev = &pdev->dev;
data->card.dai_link = &data->dai; data->card.dai_link = &data->dai;
data->card.num_links = 1; data->card.num_links = 1;
data->card.owner = THIS_MODULE;
ret = snd_soc_of_parse_card_name(&data->card, "model"); ret = snd_soc_of_parse_card_name(&data->card, "model");
if (ret) if (ret)
......
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