From: Peter Chubb Date: Sat, 3 Sep 2005 21:05:06 +0000 (-0700) Subject: [PATCH] 'mdio_bus_exit' in discarded section .text.exit X-Git-Tag: v2.6.16.28-rc1~4525^2~19 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=dc85dec68880176c8ba05f68218a161964cada46;hp=9d8cc1b6c3cba2be61c0884e3a04dd6baea70654;p=karo-tx-linux.git [PATCH] 'mdio_bus_exit' in discarded section .text.exit 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 Signed-off-by: Andrew Morton Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/phy/mdio_bus.c b/drivers/net/phy/mdio_bus.c index 5e81494e9a9a..90630672703d 100644 --- a/drivers/net/phy/mdio_bus.c +++ b/drivers/net/phy/mdio_bus.c @@ -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); }