summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-28 11:57:54 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-04-28 13:09:06 +0200
commitfb257897bf20c5f0e1df584bb5b874e811651263 (patch)
tree0520b2e248d18ccfeb7c663fc9fd306ad264e899 /sound
parentASoC: Implement WM8962 ADC high pass filter configuration (diff)
downloadlinux-fb257897bf20c5f0e1df584bb5b874e811651263.tar.xz
linux-fb257897bf20c5f0e1df584bb5b874e811651263.zip
ASoC: Work around allmodconfig failure
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@ti.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-core.c4
-rw-r--r--sound/soc/soc-utils.c6
2 files changed, 6 insertions, 4 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 16be3e5cf9e7..a823654ef367 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -3868,12 +3868,16 @@ static int __init snd_soc_init(void)
pr_warn("ASoC: Failed to create platform list debugfs file\n");
#endif
+ snd_soc_util_init();
+
return platform_driver_register(&soc_driver);
}
module_init(snd_soc_init);
static void __exit snd_soc_exit(void)
{
+ snd_soc_util_exit();
+
#ifdef CONFIG_DEBUG_FS
debugfs_remove_recursive(snd_soc_debugfs_root);
#endif
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index 286579140882..ec921ec99c26 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -82,7 +82,7 @@ static struct platform_driver soc_dummy_driver = {
static struct platform_device *soc_dummy_dev;
-static int __init snd_soc_util_init(void)
+int __init snd_soc_util_init(void)
{
int ret;
@@ -102,11 +102,9 @@ static int __init snd_soc_util_init(void)
return ret;
}
-module_init(snd_soc_util_init);
-static void __exit snd_soc_util_exit(void)
+void __exit snd_soc_util_exit(void)
{
platform_device_unregister(soc_dummy_dev);
platform_driver_unregister(&soc_dummy_driver);
}
-module_exit(snd_soc_util_exit);