mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-04 01:49:36 +00:00
mac80211 rate control: fix section mismatch
When the rate control algorithms are built-in, their exit functions can be called from mac80211's init function so they cannot be marked __exit. Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Acked-by: Stefano Brivio <stefano.brivio@polimi.it> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e903fbd41e
commit
f0b9205cfb
2 changed files with 2 additions and 2 deletions
|
@ -538,7 +538,7 @@ int __init rc80211_pid_init(void)
|
|||
return ieee80211_rate_control_register(&mac80211_rcpid);
|
||||
}
|
||||
|
||||
void __exit rc80211_pid_exit(void)
|
||||
void rc80211_pid_exit(void)
|
||||
{
|
||||
ieee80211_rate_control_unregister(&mac80211_rcpid);
|
||||
}
|
||||
|
|
|
@ -389,7 +389,7 @@ int __init rc80211_simple_init(void)
|
|||
return ieee80211_rate_control_register(&mac80211_rcsimple);
|
||||
}
|
||||
|
||||
void __exit rc80211_simple_exit(void)
|
||||
void rc80211_simple_exit(void)
|
||||
{
|
||||
ieee80211_rate_control_unregister(&mac80211_rcsimple);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue