diff options
| author | Kumar Gala <galak@codeaurora.org> | 2014-06-03 16:13:22 -0400 |
|---|---|---|
| committer | Arnd Bergmann <arnd@arndb.de> | 2014-06-18 08:59:53 -0400 |
| commit | 4cc29462cfa166b83bf6840a0b3247f505374355 (patch) | |
| tree | a8d8e8ed539ae6c740c066aa7a29d7815a14a4dd | |
| parent | 3f620ddc0dde30fe88be4cc80ae9ebda8bd37448 (diff) | |
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: Kumar Gala <galak@codeaurora.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
| -rw-r--r-- | drivers/tty/serial/msm_serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/msm_serial.c b/drivers/tty/serial/msm_serial.c index 778e376f197e..24f3cdce527d 100644 --- a/drivers/tty/serial/msm_serial.c +++ b/drivers/tty/serial/msm_serial.c | |||
| @@ -991,7 +991,7 @@ static const struct of_device_id msm_uartdm_table[] = { | |||
| 991 | { } | 991 | { } |
| 992 | }; | 992 | }; |
| 993 | 993 | ||
| 994 | static int __init msm_serial_probe(struct platform_device *pdev) | 994 | static int msm_serial_probe(struct platform_device *pdev) |
| 995 | { | 995 | { |
| 996 | struct msm_port *msm_port; | 996 | struct msm_port *msm_port; |
| 997 | struct resource *resource; | 997 | struct resource *resource; |
