Commit fb97624a authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown

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: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 66bf9321
...@@ -167,7 +167,7 @@ static void __init audmux_debugfs_init(void) ...@@ -167,7 +167,7 @@ static void __init audmux_debugfs_init(void)
} }
} }
static void __exit audmux_debugfs_remove(void) static void __devexit audmux_debugfs_remove(void)
{ {
debugfs_remove_recursive(audmux_debugfs_root); debugfs_remove_recursive(audmux_debugfs_root);
} }
...@@ -249,7 +249,7 @@ int imx_audmux_v2_configure_port(unsigned int port, unsigned int ptcr, ...@@ -249,7 +249,7 @@ int imx_audmux_v2_configure_port(unsigned int port, unsigned int ptcr,
} }
EXPORT_SYMBOL_GPL(imx_audmux_v2_configure_port); EXPORT_SYMBOL_GPL(imx_audmux_v2_configure_port);
static int __init imx_audmux_probe(struct platform_device *pdev) static int __devinit imx_audmux_probe(struct platform_device *pdev)
{ {
struct resource *res; struct resource *res;
const struct of_device_id *of_id = const struct of_device_id *of_id =
...@@ -276,7 +276,7 @@ static int __init imx_audmux_probe(struct platform_device *pdev) ...@@ -276,7 +276,7 @@ static int __init imx_audmux_probe(struct platform_device *pdev)
return 0; return 0;
} }
static int __exit imx_audmux_remove(struct platform_device *pdev) static int __devexit imx_audmux_remove(struct platform_device *pdev)
{ {
if (audmux_type == IMX31_AUDMUX) if (audmux_type == IMX31_AUDMUX)
audmux_debugfs_remove(); audmux_debugfs_remove();
...@@ -287,7 +287,7 @@ static int __exit imx_audmux_remove(struct platform_device *pdev) ...@@ -287,7 +287,7 @@ static int __exit imx_audmux_remove(struct platform_device *pdev)
static struct platform_driver imx_audmux_driver = { static struct platform_driver imx_audmux_driver = {
.probe = imx_audmux_probe, .probe = imx_audmux_probe,
.remove = __exit_p(imx_audmux_remove), .remove = __devexit_p(imx_audmux_remove),
.id_table = imx_audmux_ids, .id_table = imx_audmux_ids,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment