Skip to content

Commit

Permalink
[PATCH] 'mdio_bus_exit' in discarded section .text.exit
Browse files Browse the repository at this point in the history
When building with  CONFIG_PHYLIB=y on Itanium, I see:
 `mdio_bus_exit' referenced in section `.init.text' of
drivers/built-in.o: defined in discarded section `.exit.text' of
drivers/built-in.o

I believe that mdio_bus_exit should not be declared __exit, because it is
referencesd from __init sections in, say, phy_init().

Signed-off-by: Peter Chubb <peterc@gelato.unsw.edu.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
  • Loading branch information
Peter Chubb authored and Jeff Garzik committed Sep 5, 2005
1 parent 9d8cc1b commit dc85dec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/phy/mdio_bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ int __init mdio_bus_init(void)
return bus_register(&mdio_bus_type);
}

void __exit mdio_bus_exit(void)
void mdio_bus_exit(void)
{
bus_unregister(&mdio_bus_type);
}

0 comments on commit dc85dec

Please sign in to comment.