]> git.karo-electronics.de Git - karo-tx-linux.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)
committerNitin Garg <nitin.garg@freescale.com>
Fri, 16 Jan 2015 03:16:49 +0000 (21:16 -0600)
commit548257e4ae7ab04a531d2c5c23be4b76ff780672
treeebb7fee13391627156c30822131482ea2e16022a
parent53ac6d9e8be9a1ae355750743804ab4801b350d1
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>
(cherry picked from commit b8909783a22b4f169ade830e0aa6dafe313426f1)
sound/soc/fsl/imx-audmux.c