commit | 2568835cb44d6fe976e977d96aeca73c9fe1642c | [log] [tgz] |
---|---|---|
author | Luis R. Rodriguez <lrodriguez@atheros.com> | Tue Oct 06 21:19:09 2009 -0400 |
committer | John W. Linville <linville@tuxdriver.com> | Wed Oct 07 16:39:52 2009 -0400 |
tree | abf665608afe444d80427cbda689f9536b9984fc | |
parent | 7fda16665152851fe65ee73e24afdcaf67acba59 [diff] |
ath9k: add a helper to clean the core driver upon module unload The core driver needs to be stopped and then as a last step the hardware needs to be stopped and its structure free'd. We do this by moving the core driver cleanup to a new helper ath_clean_core() and have ath_cleanup() call it. Only as a last step does ath_cleanup() now free the hw. Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>