aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2011-05-08 13:30:36 +0000
committerGabor Juhos <juhosg@openwrt.org>2011-05-08 13:30:36 +0000
commit37116582811963a277f3219059371998645e0b13 (patch)
tree2f45bc0d788f01c077c10d964173c3f8323530f1 /target
parentef530298708a90b0e2bfc0db8840c492f428dd32 (diff)
downloadupstream-37116582811963a277f3219059371998645e0b13.tar.gz
upstream-37116582811963a277f3219059371998645e0b13.tar.bz2
upstream-37116582811963a277f3219059371998645e0b13.zip
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
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c2
-rw-r--r--target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c
index 3ce2f0a5db..0270e60511 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c
@@ -859,7 +859,7 @@ int __devinit ag71xx_ar7240_init(struct ag71xx *ag)
return 0;
}
-void __devexit ag71xx_ar7240_cleanup(struct ag71xx *ag)
+void ag71xx_ar7240_cleanup(struct ag71xx *ag)
{
struct ar7240sw *as = ag->phy_priv;
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
index d70aaf0921..d0bae03b13 100644
--- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
+++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c
@@ -217,7 +217,7 @@ int __devinit ag71xx_phy_connect(struct ag71xx *ag)
return ag71xx_phy_connect_fixed(ag);
}
-void __devexit ag71xx_phy_disconnect(struct ag71xx *ag)
+void ag71xx_phy_disconnect(struct ag71xx *ag)
{
struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);