diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-04-24 02:25:56 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-04-24 06:22:53 -0400 |
commit | b8909783a22b4f169ade830e0aa6dafe313426f1 (patch) | |
tree | 4520bbaaf236f18c7a08ac3ef395537e3ff34edf /sound | |
parent | c9eaa447e77efe77b7fa4c953bd62de8297fd6c5 (diff) |
ASoC: imx-audmux: Fix section mismatch
audmux_debugfs_init() is marked as __init, but is called from imx_audmux_probe()
which is not marked as __init. This creates a section mismatch and a potential
runtime crash (if imx_audmux_probe() is called after the .init section was
dropped). This patch removes the __init annotation from audmux_debugfs_init(),
which fixes the following warning:
WARNING: sound/soc/built-in.o(.text+0x86960): Section mismatch in reference
from the function imx_audmux_probe() to the function
.init.text:audmux_debugfs_init()
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/fsl/imx-audmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-audmux.c b/sound/soc/fsl/imx-audmux.c index ac869931d7f1..267717aa96c1 100644 --- a/sound/soc/fsl/imx-audmux.c +++ b/sound/soc/fsl/imx-audmux.c | |||
@@ -145,7 +145,7 @@ static const struct file_operations audmux_debugfs_fops = { | |||
145 | .llseek = default_llseek, | 145 | .llseek = default_llseek, |
146 | }; | 146 | }; |
147 | 147 | ||
148 | static void __init audmux_debugfs_init(void) | 148 | static void audmux_debugfs_init(void) |
149 | { | 149 | { |
150 | int i; | 150 | int i; |
151 | char buf[20]; | 151 | char buf[20]; |