diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2012-11-22 13:31:08 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-23 23:39:02 +0900 |
commit | 29df430692c46b8c434ce172a6f127945b475b95 (patch) | |
tree | 642dbfcbed214b8f26254946ff21062aef840ec8 /sound/soc/fsl/imx-sgtl5000.c | |
parent | ce555e5d3b11908a2ecef2c345ac9de09d32f581 (diff) | |
download | linux-29df430692c46b8c434ce172a6f127945b475b95.tar.gz linux-29df430692c46b8c434ce172a6f127945b475b95.tar.bz2 linux-29df430692c46b8c434ce172a6f127945b475b95.zip |
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 <LW@KARO-electronics.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/fsl/imx-sgtl5000.c')
-rw-r--r-- | sound/soc/fsl/imx-sgtl5000.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |