diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2010-06-21 03:44:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-21 13:40:25 -0700 |
commit | ade2d3db21b0625f9528bcd6f1656dd7c8d0fe08 (patch) | |
tree | 7b4af0a448883fc8ee778eca69c2619cdf403044 /drivers/net | |
parent | 25442e06d20aaba7d7b16438078a562b3e4cf19b (diff) | |
download | linux-3.10-ade2d3db21b0625f9528bcd6f1656dd7c8d0fe08.tar.gz linux-3.10-ade2d3db21b0625f9528bcd6f1656dd7c8d0fe08.tar.bz2 linux-3.10-ade2d3db21b0625f9528bcd6f1656dd7c8d0fe08.zip |
NET: MIPSsim: Fix modpost warning.
$ make CONFIG_DEBUG_SECTION_MISMATCH=y
[...]
WARNING: drivers/net/built-in.o(.data+0x0): Section mismatch in reference from the variable mipsnet_driver to the function .init.text:mipsnet_probe()
The variable mipsnet_driver references
the function __init mipsnet_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,
[...]
Fixed by making mipsnet_probe __devinit.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
drivers/net/mipsnet.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/mipsnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mipsnet.c b/drivers/net/mipsnet.c index 8e9704f5c12..869f0ea43a5 100644 --- a/drivers/net/mipsnet.c +++ b/drivers/net/mipsnet.c @@ -247,7 +247,7 @@ static const struct net_device_ops mipsnet_netdev_ops = { .ndo_set_mac_address = eth_mac_addr, }; -static int __init mipsnet_probe(struct platform_device *dev) +static int __devinit mipsnet_probe(struct platform_device *dev) { struct net_device *netdev; int err; |