ARM: RiscPC: etherh: fix section mismatches
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 6 May 2011 07:14:57 +0000 (08:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 6 May 2011 07:14:57 +0000 (08:14 +0100)
commit56f3aeb2c14b9d000dfc77f352250bc3b67af5c0
tree6e0ab3d79da15087df628809ef97c48713eb6aca
parent5895198c56d131cc696556a45f7ff0ea99ac297b
ARM: RiscPC: etherh: fix section mismatches

WARNING: drivers/net/arm/built-in.o(.data+0x0): Section mismatch in reference from the variable etherh_driver to the function .init.text:etherh_probe()
The variable etherh_driver references
the function __init etherh_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: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/net/arm/etherh.c