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)
commit3ec16dd1d272669a4fc42119e688e18ed58f1e97
treef45088a9735f3418bc23bc0480d1ed17bbb78488
parent8e8aa139a8683887aafcb163052b5239b772a398
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