Commit 56f3aeb2c14b9d000dfc77f352250bc3b67af5c0
1 parent
5895198c56
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/net/arm/etherh.c
... | ... | @@ -527,7 +527,7 @@ |
527 | 527 | * Read the ethernet address string from the on board rom. |
528 | 528 | * This is an ascii string... |
529 | 529 | */ |
530 | -static int __init etherh_addr(char *addr, struct expansion_card *ec) | |
530 | +static int __devinit etherh_addr(char *addr, struct expansion_card *ec) | |
531 | 531 | { |
532 | 532 | struct in_chunk_dir cd; |
533 | 533 | char *s; |
... | ... | @@ -655,7 +655,7 @@ |
655 | 655 | static u32 etherh_regoffsets[16]; |
656 | 656 | static u32 etherm_regoffsets[16]; |
657 | 657 | |
658 | -static int __init | |
658 | +static int __devinit | |
659 | 659 | etherh_probe(struct expansion_card *ec, const struct ecard_id *id) |
660 | 660 | { |
661 | 661 | const struct etherh_data *data = id->data; |