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>
This commit is contained in:
parent
9e446ad500
commit
7a3a907022
1 changed files with 1 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue