ar71xx: ag71xx: fix section mismatch warnings
authorGabor Juhos <juhosg@openwrt.org>
Sun, 8 May 2011 13:30:36 +0000 (13:30 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 8 May 2011 13:30:36 +0000 (13:30 +0000)
commit37116582811963a277f3219059371998645e0b13
tree2f45bc0d788f01c077c10d964173c3f8323530f1
parentef530298708a90b0e2bfc0db8840c492f428dd32
ar71xx: ag71xx: fix section mismatch warnings

The function __devinit ag71xx_probe() references
a function __devexit ag71xx_phy_disconnect().
This is often seen when error handling in the init function
uses functionality in the exit path.
The fix is often to remove the __devexit annotation of
ag71xx_phy_disconnect() so it may be used outside an exit section.

The function ag71xx_phy_disconnect() references a function in an exit
section.
Often the function ag71xx_ar7240_cleanup() has valid usage outside the
exit section
and the fix is to remove the __devexit annotation of
ag71xx_ar7240_cleanup.

SVN-Revision: 26855
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c