aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/octeon
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-06-24 05:14:47 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-29 02:58:53 -0400
commitd30b181bd6d047b39235a0d8e26de422d9d05b25 (patch)
tree8507f9f0f0439fcdb7609901e33923a8def3ad85 /drivers/net/octeon
parent210d6de78c5d7c785fc532556cea340e517955e1 (diff)
netdev: octeon_mgmt: Fix section mismatch errors.
We started getting: WARNING: drivers/net/built-in.o(.data+0x10f0): Section mismatch in reference from the variable octeon_mgmt_driver to the function .init.text:octeon_mgmt_probe() This fixes it. Signed-off-by: David Daney <ddaney@caviumnetworks.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/octeon')
-rw-r--r--drivers/net/octeon/octeon_mgmt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/octeon/octeon_mgmt.c b/drivers/net/octeon/octeon_mgmt.c
index 000e792d57c0..f4a0f08e14e1 100644
--- a/drivers/net/octeon/octeon_mgmt.c
+++ b/drivers/net/octeon/octeon_mgmt.c
@@ -1067,7 +1067,7 @@ static const struct net_device_ops octeon_mgmt_ops = {
1067#endif 1067#endif
1068}; 1068};
1069 1069
1070static int __init octeon_mgmt_probe(struct platform_device *pdev) 1070static int __devinit octeon_mgmt_probe(struct platform_device *pdev)
1071{ 1071{
1072 struct resource *res_irq; 1072 struct resource *res_irq;
1073 struct net_device *netdev; 1073 struct net_device *netdev;
@@ -1124,7 +1124,7 @@ err:
1124 return -ENOENT; 1124 return -ENOENT;
1125} 1125}
1126 1126
1127static int __exit octeon_mgmt_remove(struct platform_device *pdev) 1127static int __devexit octeon_mgmt_remove(struct platform_device *pdev)
1128{ 1128{
1129 struct net_device *netdev = dev_get_drvdata(&pdev->dev); 1129 struct net_device *netdev = dev_get_drvdata(&pdev->dev);
1130 1130
@@ -1139,7 +1139,7 @@ static struct platform_driver octeon_mgmt_driver = {
1139 .owner = THIS_MODULE, 1139 .owner = THIS_MODULE,
1140 }, 1140 },
1141 .probe = octeon_mgmt_probe, 1141 .probe = octeon_mgmt_probe,
1142 .remove = __exit_p(octeon_mgmt_remove), 1142 .remove = __devexit_p(octeon_mgmt_remove),
1143}; 1143};
1144 1144
1145extern void octeon_mdiobus_force_mod_depencency(void); 1145extern void octeon_mdiobus_force_mod_depencency(void);