From: Lothar Waßmann Date: Thu, 22 Nov 2012 12:31:08 +0000 (+0100) Subject: ASoC: imx-sgtl5000: prevent module from being unloaded when in use X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=29df430692c46b8c434ce172a6f127945b475b95;p=linux-beck.git ASoC: imx-sgtl5000: prevent module from being unloaded when in use set the 'onwer' field of the registered snd_soc_card object to prevent removal of the module when its resources are in use. Signed-off-by: Lothar Waßmann Signed-off-by: Mark Brown --- diff --git a/sound/soc/fsl/imx-sgtl5000.c b/sound/soc/fsl/imx-sgtl5000.c index 199408ec4261..3d9b1c427ce9 100644 --- a/sound/soc/fsl/imx-sgtl5000.c +++ b/sound/soc/fsl/imx-sgtl5000.c @@ -162,6 +162,7 @@ static int __devinit imx_sgtl5000_probe(struct platform_device *pdev) if (ret) goto clk_fail; data->card.num_links = 1; + data->card.owner = THIS_MODULE; data->card.dai_link = &data->dai; data->card.dapm_widgets = imx_sgtl5000_dapm_widgets; data->card.num_dapm_widgets = ARRAY_SIZE(imx_sgtl5000_dapm_widgets);