Skip to content

Commit

Permalink
netdev: mdio-octeon: Fix section mismatch errors.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Daney authored and David S. Miller committed Jun 29, 2010
1 parent d30b181 commit a71e832
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/phy/mdio-octeon.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static int octeon_mdiobus_write(struct mii_bus *bus, int phy_id,
return 0;
}

static int __init octeon_mdiobus_probe(struct platform_device *pdev)
static int __devinit octeon_mdiobus_probe(struct platform_device *pdev)
{
struct octeon_mdiobus *bus;
union cvmx_smix_en smi_en;
Expand Down Expand Up @@ -143,7 +143,7 @@ static int __init octeon_mdiobus_probe(struct platform_device *pdev)
return err;
}

static int __exit octeon_mdiobus_remove(struct platform_device *pdev)
static int __devexit octeon_mdiobus_remove(struct platform_device *pdev)
{
struct octeon_mdiobus *bus;
union cvmx_smix_en smi_en;
Expand All @@ -163,7 +163,7 @@ static struct platform_driver octeon_mdiobus_driver = {
.owner = THIS_MODULE,
},
.probe = octeon_mdiobus_probe,
.remove = __exit_p(octeon_mdiobus_remove),
.remove = __devexit_p(octeon_mdiobus_remove),
};

void octeon_mdiobus_force_mod_depencency(void)
Expand Down

0 comments on commit a71e832

Please sign in to comment.