Skip to content

Commit

Permalink
ucc_geth: fix section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Domen Puncer authored and Li Yang committed Aug 3, 2007
1 parent 7a883ea commit ed7e63a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ucc_geth_mii.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit ed7e63a

Please sign in to comment.