Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Daney and committed by
David S. Miller
a71e8329 d30b181b

+3 -3
+3 -3
drivers/net/phy/mdio-octeon.c
··· 85 85 return 0; 86 86 } 87 87 88 - static int __init octeon_mdiobus_probe(struct platform_device *pdev) 88 + static int __devinit octeon_mdiobus_probe(struct platform_device *pdev) 89 89 { 90 90 struct octeon_mdiobus *bus; 91 91 union cvmx_smix_en smi_en; ··· 143 143 return err; 144 144 } 145 145 146 - static int __exit octeon_mdiobus_remove(struct platform_device *pdev) 146 + static int __devexit octeon_mdiobus_remove(struct platform_device *pdev) 147 147 { 148 148 struct octeon_mdiobus *bus; 149 149 union cvmx_smix_en smi_en; ··· 163 163 .owner = THIS_MODULE, 164 164 }, 165 165 .probe = octeon_mdiobus_probe, 166 - .remove = __exit_p(octeon_mdiobus_remove), 166 + .remove = __devexit_p(octeon_mdiobus_remove), 167 167 }; 168 168 169 169 void octeon_mdiobus_force_mod_depencency(void)