dect
/
linux-2.6
Archived
13
0
Fork 0

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>
This commit is contained in:
Lothar Waßmann 2012-11-22 13:31:08 +01:00 committed by Mark Brown
parent ce555e5d3b
commit 29df430692
1 changed files with 1 additions and 0 deletions

View File

@ -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);