From: Fabio Estevam Date: Wed, 14 Jan 2015 18:39:15 +0000 (-0200) Subject: ASoC: fsl: imx-spdif: Set the card owner field X-Git-Tag: v4.0-rc1~129^2~13^2~6^3 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7a3a907022439524704caecb717639aea2f1ef9c;p=karo-tx-linux.git 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 Signed-off-by: Mark Brown --- 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)