Skip to contentSkip to conversation

ASoC: fsl: imx-spdif: Set the card owner field

PATCH Applied Fabio Estevam 2 participants 2 messages Jan 14, 2015

Subsystems (4)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/1 ASoC: fsl: imx-spdif: Set the card owner field

From: Fabio Estevam <[email protected]>

Set the card owner field to avoid getting a kernel crash when the imx-spdif is unloaded while the playback is active.

---
Build-tested only.

 sound/soc/fsl/imx-spdif.c | 1 +
 1 file changed, 1 insertion(+)
sound/soc/fsl/imx-spdif.c +1 -0
index e94704f..33da26a 100644
@@ -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)
Signature · 1 line
1.9.1
maintainer Applied
#1 lore raw
Quoted 4 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Set the card owner field to avoid getting a kernel crash when the imx-spdif is unloaded while the playback is active.

Applied, thanks.