Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4cc29462 authored by Kumar Gala's avatar Kumar Gala Committed by Arnd Bergmann
Browse files

tty: serial: msm: Fix section mismatch warning



WARNING: drivers/tty/built-in.o(.data+0x3544): Section mismatch in
reference from the variable msm_platform_driver to the function
.init.text:msm_serial_probe()
The variable msm_platform_driver references
the function __init msm_serial_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 avatarKumar Gala <galak@codeaurora.org>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent 3f620ddc
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -991,7 +991,7 @@ static const struct of_device_id msm_uartdm_table[] = {
	{ }
	{ }
};
};


static int __init msm_serial_probe(struct platform_device *pdev)
static int msm_serial_probe(struct platform_device *pdev)
{
{
	struct msm_port *msm_port;
	struct msm_port *msm_port;
	struct resource *resource;
	struct resource *resource;