iwlagn: refactor up path
authorJohannes Berg <johannes.berg@intel.com>
Wed, 13 Apr 2011 10:14:46 +0000 (03:14 -0700)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 22 Apr 2011 17:02:39 +0000 (10:02 -0700)
commit3e14c1fd75d909bfcc6caab79c544921fd02bf73
tree81b86f6a9774ac27606a7046ffb129b65d41ddab
parentbc4f8adac6b30ee5f03dad267896add7e58db729
iwlagn: refactor up path

Starting the device consists of many things,
refactor out enabling the hardware and also
return -ERFKILL when the rfkill signal is
found to be asserted (which makes more sense
anyway, but is also required now to make the
__iwl_up function return right away.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-agn-lib.c
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl-agn.h