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)
commit2d8d374be2a68f7445e08e6bac48d64e4abc77b2
treef45088a9735f3418bc23bc0480d1ed17bbb78488
parent0e24dd9f57366c266f8b22b49319e23a3f90e539
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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26855 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c
target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c