Skip to content

Commit

Permalink
ASoC: imx-audmux: Fix section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Mark Brown committed Apr 24, 2014
1 parent c9eaa44 commit b890978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/fsl/imx-audmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ static const struct file_operations audmux_debugfs_fops = {
.llseek = default_llseek,
};

static void __init audmux_debugfs_init(void)
static void audmux_debugfs_init(void)
{
int i;
char buf[20];
Expand Down

0 comments on commit b890978

Please sign in to comment.