aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2012-03-07 13:19:57 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-07 14:32:39 -0500
commitfb97624ad61f734837998b316cc4eb1cf899900f (patch)
tree672c6de80ae53defe00e227af87199970acf1064 /sound
parent66bf93212f19548f5ed221356b2d70189cc18254 (diff)
ASoC: imx: imx-audmux: Fix section mismatch
Fix the following section mismatch warning: WARNING: vmlinux.o(.data+0x35be8): Section mismatch in reference from the variable imx_audmux_driver to the function .init.text:imx_audmux_probe() The variable imx_audmux_driver references the function __init imx_audmux_probe() If the reference is valid then annotate the variable with __init* or __refdata (see linux/init.h) or name the variable: *_template, *_timer, *_sht, *_ops, *_probe, *_probe_one, *_console Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/imx/imx-audmux.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sound/soc/imx/imx-audmux.c b/sound/soc/imx/imx-audmux.c
index b83699d905b..a839494c5ea 100644
--- a/sound/soc/imx/imx-audmux.c
+++ b/sound/soc/imx/imx-audmux.c
@@ -167,7 +167,7 @@ static void __init audmux_debugfs_init(void)
167 } 167 }
168} 168}
169 169
170static void __exit audmux_debugfs_remove(void) 170static void __devexit audmux_debugfs_remove(void)
171{ 171{
172 debugfs_remove_recursive(audmux_debugfs_root); 172 debugfs_remove_recursive(audmux_debugfs_root);
173} 173}
@@ -249,7 +249,7 @@ int imx_audmux_v2_configure_port(unsigned int port, unsigned int ptcr,
249} 249}
250EXPORT_SYMBOL_GPL(imx_audmux_v2_configure_port); 250EXPORT_SYMBOL_GPL(imx_audmux_v2_configure_port);
251 251
252static int __init imx_audmux_probe(struct platform_device *pdev) 252static int __devinit imx_audmux_probe(struct platform_device *pdev)
253{ 253{
254 struct resource *res; 254 struct resource *res;
255 const struct of_device_id *of_id = 255 const struct of_device_id *of_id =
@@ -276,7 +276,7 @@ static int __init imx_audmux_probe(struct platform_device *pdev)
276 return 0; 276 return 0;
277} 277}
278 278
279static int __exit imx_audmux_remove(struct platform_device *pdev) 279static int __devexit imx_audmux_remove(struct platform_device *pdev)
280{ 280{
281 if (audmux_type == IMX31_AUDMUX) 281 if (audmux_type == IMX31_AUDMUX)
282 audmux_debugfs_remove(); 282 audmux_debugfs_remove();
@@ -287,7 +287,7 @@ static int __exit imx_audmux_remove(struct platform_device *pdev)
287 287
288static struct platform_driver imx_audmux_driver = { 288static struct platform_driver imx_audmux_driver = {
289 .probe = imx_audmux_probe, 289 .probe = imx_audmux_probe,
290 .remove = __exit_p(imx_audmux_remove), 290 .remove = __devexit_p(imx_audmux_remove),
291 .id_table = imx_audmux_ids, 291 .id_table = imx_audmux_ids,
292 .driver = { 292 .driver = {
293 .name = DRIVER_NAME, 293 .name = DRIVER_NAME,