From 0511a7adf1781766ff89f543a6f4ffe2fea6a217 Mon Sep 17 00:00:00 2001 From: juhosg Date: Sun, 8 May 2011 13:30:36 +0000 Subject: 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_phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_phy.c') 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 d70aaf092..d0bae03b1 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); -- cgit v1.2.3