]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] 'mdio_bus_exit' in discarded section .text.exit
authorPeter Chubb <peterc@gelato.unsw.edu.au>
Sat, 3 Sep 2005 21:05:06 +0000 (14:05 -0700)
committerJeff Garzik <jgarzik@pobox.com>
Mon, 5 Sep 2005 22:04:19 +0000 (18:04 -0400)
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>
drivers/net/phy/mdio_bus.c

index 5e81494e9a9ad9d35e368e941d5a40cac3be8462..90630672703d1c1886e169b4e718d44c0357899b 100644 (file)
@@ -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);
 }