aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/phy
diff options
context:
space:
mode:
authorDavid Daney <ddaney@caviumnetworks.com>2010-06-24 05:14:48 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-29 02:58:54 -0400
commita71e8329170ece5f684aa363dfa69828cbfd5184 (patch)
treeeab1a607bd713c5045cc47873696780af112cb63 /drivers/net/phy
parentd30b181bd6d047b39235a0d8e26de422d9d05b25 (diff)
netdev: mdio-octeon: Fix section mismatch errors.
We started getting: WARNING: vmlinux.o(.data+0x20bd0): Section mismatch in reference from the variable octeon_mdiobus_driver to the function .init.text:octeon_mdiobus_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/phy')
-rw-r--r--drivers/net/phy/mdio-octeon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/phy/mdio-octeon.c b/drivers/net/phy/mdio-octeon.c
index f443d43edd80..bd12ba941be5 100644
--- a/drivers/net/phy/mdio-octeon.c
+++ b/drivers/net/phy/mdio-octeon.c
@@ -85,7 +85,7 @@ static int octeon_mdiobus_write(struct mii_bus *bus, int phy_id,
85 return 0; 85 return 0;
86} 86}
87 87
88static int __init octeon_mdiobus_probe(struct platform_device *pdev) 88static int __devinit octeon_mdiobus_probe(struct platform_device *pdev)
89{ 89{
90 struct octeon_mdiobus *bus; 90 struct octeon_mdiobus *bus;
91 union cvmx_smix_en smi_en; 91 union cvmx_smix_en smi_en;
@@ -143,7 +143,7 @@ err:
143 return err; 143 return err;
144} 144}
145 145
146static int __exit octeon_mdiobus_remove(struct platform_device *pdev) 146static int __devexit octeon_mdiobus_remove(struct platform_device *pdev)
147{ 147{
148 struct octeon_mdiobus *bus; 148 struct octeon_mdiobus *bus;
149 union cvmx_smix_en smi_en; 149 union cvmx_smix_en smi_en;
@@ -163,7 +163,7 @@ static struct platform_driver octeon_mdiobus_driver = {
163 .owner = THIS_MODULE, 163 .owner = THIS_MODULE,
164 }, 164 },
165 .probe = octeon_mdiobus_probe, 165 .probe = octeon_mdiobus_probe,
166 .remove = __exit_p(octeon_mdiobus_remove), 166 .remove = __devexit_p(octeon_mdiobus_remove),
167}; 167};
168 168
169void octeon_mdiobus_force_mod_depencency(void) 169void octeon_mdiobus_force_mod_depencency(void)