projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce555e5
)
ASoC: imx-sgtl5000: prevent module from being unloaded when in use
author
Lothar Waßmann
<LW@KARO-electronics.de>
Thu, 22 Nov 2012 12:31:08 +0000
(13:31 +0100)
committer
Mark Brown
<broonie@opensource.wolfsonmicro.com>
Fri, 23 Nov 2012 14:39:02 +0000
(23:39 +0900)
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>
sound/soc/fsl/imx-sgtl5000.c
patch
|
blob
|
history
diff --git
a/sound/soc/fsl/imx-sgtl5000.c
b/sound/soc/fsl/imx-sgtl5000.c
index 199408ec42612dfe57f63e3933457e901cf7bcfa..3d9b1c427ce912056afdf876f09388d05b1c0e5d 100644
(file)
--- 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);