]> git.baikalelectronics.ru Git - kernel.git/commit
net: fix mdio section mismatch warning
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 16 Nov 2009 22:47:33 +0000 (22:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Nov 2009 12:04:40 +0000 (04:04 -0800)
commitc1a0f7323006744bcff1b2e19d2a70419f02c9c0
treee58f3930b3356ae5e56ea5bd3db555e63bc4fb70
parent13a508ec77d3073ce350e9886c10b1881f9991d4
net: fix mdio section mismatch warning

This fixes the following warning:

WARNING: drivers/net/phy/built-in.o(.devexit.text+0x70): Section mismatch in reference from the function .mdio_gpio_bus_destroy() to the function .devinit.text:.mdio_gpio_bus_deinit()
The function __devexit .mdio_gpio_bus_destroy() references
a function __devinit .mdio_gpio_bus_deinit().
This is often seen when error handling in the exit function
uses functionality in the init path.
The fix is often to remove the __devinit annotation of
.mdio_gpio_bus_deinit() so it may be used outside an init section.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-gpio.c