mirror of https://github.com/hak5/openwrt.git
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: 26855lede-17.01
parent
ef53029870
commit
3711658281
|
@ -859,7 +859,7 @@ int __devinit ag71xx_ar7240_init(struct ag71xx *ag)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void __devexit ag71xx_ar7240_cleanup(struct ag71xx *ag)
|
void ag71xx_ar7240_cleanup(struct ag71xx *ag)
|
||||||
{
|
{
|
||||||
struct ar7240sw *as = ag->phy_priv;
|
struct ar7240sw *as = ag->phy_priv;
|
||||||
|
|
||||||
|
|
|
@ -217,7 +217,7 @@ int __devinit ag71xx_phy_connect(struct ag71xx *ag)
|
||||||
return ag71xx_phy_connect_fixed(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);
|
struct ag71xx_platform_data *pdata = ag71xx_get_pdata(ag);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue