apbuart: fix section mismatch warning
authorSam Ravnborg <sam@ravnborg.org>
Tue, 27 Dec 2011 21:07:23 +0000 (22:07 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Dec 2011 21:33:13 +0000 (16:33 -0500)
commitab17da5cb9d4aaf9f04c706761d3a8024897bedd
treed4c8ef81b261d8b4ebd9d94090c25ed1fde496f0
parente1a8b69afd63f26f8e7be39e3bc78c4894cdb9fd
apbuart: fix section mismatch warning

Fix following warnings:

WARNING: drivers/tty/serial/built-in.o(.text+0x7370): Section mismatch in reference from the function grlib_apbuart_configure() to the variable .init.data:apbuart_match
The function grlib_apbuart_configure() references
the variable __initdata apbuart_match.
This is often because grlib_apbuart_configure lacks a __initdata
annotation or the annotation of apbuart_match is wrong.

+ 3 more warnings like this.

There is no guarantee that grlib_apbuart_of_driver.of_match_table
is only used at __init time - so drop the __initdata annotation.

grlib_apbuart_configure() is only used during __init so add __init
to this method too.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Daniel Hellstrom <daniel@gaisler.com>
Cc: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/tty/serial/apbuart.c
This page took 0.024835 seconds and 5 git commands to generate.