diff options
author | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-01-19 21:16:46 +0100 |
---|---|---|
committer | Wey-Yi Guy <wey-yi.w.guy@intel.com> | 2012-01-28 17:08:20 +0100 |
commit | 42602dd419177b0de1b1093a420399132ed75ca6 (patch) | |
tree | 2561021539097259e1522362f22043c9703ca6e9 /drivers/net/wireless/iwlwifi/iwl-led.c | |
parent | iwlwifi: fix uCode event tracing (diff) | |
download | linux-42602dd419177b0de1b1093a420399132ed75ca6.tar.xz linux-42602dd419177b0de1b1093a420399132ed75ca6.zip |
iwlwifi: add option to disalbe LED
Led has no use for some platform.
Add additional module parameter option to disable LED
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-led.c')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-led.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-led.c b/drivers/net/wireless/iwlwifi/iwl-led.c index eca79087afb8..8761438f1532 100644 --- a/drivers/net/wireless/iwlwifi/iwl-led.c +++ b/drivers/net/wireless/iwlwifi/iwl-led.c @@ -177,6 +177,10 @@ void iwl_leds_init(struct iwl_priv *priv) int mode = iwlagn_mod_params.led_mode; int ret; + if (mode == IWL_LED_DISABLE) { + IWL_INFO(priv, "Led disabled\n"); + return; + } if (mode == IWL_LED_DEFAULT) mode = cfg(priv)->led_mode; |