summaryrefslogtreecommitdiff
path: root/drivers/net/ucc_geth_mii.c
diff options
context:
space:
mode:
authorDomen Puncer <domen.puncer@telargo.com>2007-08-03 12:07:58 +0400
committerLi Yang <leoli@freescale.com>2007-08-03 12:07:58 +0400
commited7e63a51d46e835422d89c687b8a3e419a4212a (patch)
treea28c2f173d2669e521f60678a5394d94ceaf65a9 /drivers/net/ucc_geth_mii.c
parent7a883eaf62f4b943ebec738ce3b0796c67ef5d32 (diff)
downloadlinux-ed7e63a51d46e835422d89c687b8a3e419a4212a.tar.xz
ucc_geth: fix section mismatch
This fix section mismatch: reference to .exit.text:uec_mdio_exit (between 'ucc_geth_init' and 'uec_mdio_init') void __exit uec_mdio_exit(void) is called from - static int __init ucc_geth_init(void) - static void __exit ucc_geth_exit(void) First one would make error path more than just an error. Signed-off-by: Domen Puncer <domen.puncer@telargo.com> Signed-off-by: Li Yang <leoli@freescale.com>
Diffstat (limited to 'drivers/net/ucc_geth_mii.c')
-rw-r--r--drivers/net/ucc_geth_mii.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ucc_geth_mii.c b/drivers/net/ucc_geth_mii.c
index 5f8c2d30a328..6c257b88ce51 100644
--- a/drivers/net/ucc_geth_mii.c
+++ b/drivers/net/ucc_geth_mii.c
@@ -272,7 +272,8 @@ int __init uec_mdio_init(void)
return of_register_platform_driver(&uec_mdio_driver);
}
-void __exit uec_mdio_exit(void)
+/* called from __init ucc_geth_init, therefore can not be __exit */
+void uec_mdio_exit(void)
{
of_unregister_platform_driver(&uec_mdio_driver);
}