Skip to content

Commit

Permalink
tty: serial: msm: Fix section mismatch warning
Browse files Browse the repository at this point in the history
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: Kumar Gala <galak@codeaurora.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Kumar Gala authored and Arnd Bergmann committed Jun 18, 2014
1 parent 3f620dd commit 4cc2946
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/msm_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 resource *resource;
Expand Down

0 comments on commit 4cc2946

Please sign in to comment.