]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: imx-audmux: Fix section mismatch
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 24 Apr 2014 06:25:56 +0000 (08:25 +0200)
committerMark Brown <broonie@linaro.org>
Thu, 24 Apr 2014 10:22:53 +0000 (11:22 +0100)
commitfbd130b226e7c16103cb1fcef8d9916f901948e0
tree4520bbaaf236f18c7a08ac3ef395537e3ff34edf
parent03a169e57a9a3fd69c1713c317a06f163ad63b5c
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>
sound/soc/fsl/imx-audmux.c