29 lines
935 B
Diff
29 lines
935 B
Diff
--- a/drivers/net/wireless/iwlwifi/iwl-led.c
|
|
+++ b/drivers/net/wireless/iwlwifi/iwl-led.c
|
|
@@ -163,6 +163,7 @@ static void iwl_led_brightness_set(struc
|
|
iwl_led_cmd(priv, on, 0);
|
|
}
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
|
|
static int iwl_led_blink_set(struct led_classdev *led_cdev,
|
|
unsigned long *delay_on,
|
|
unsigned long *delay_off)
|
|
@@ -171,6 +172,7 @@ static int iwl_led_blink_set(struct led_
|
|
|
|
return iwl_led_cmd(priv, *delay_on, *delay_off);
|
|
}
|
|
+#endif
|
|
|
|
void iwl_leds_init(struct iwl_priv *priv)
|
|
{
|
|
@@ -183,7 +185,9 @@ void iwl_leds_init(struct iwl_priv *priv
|
|
priv->led.name = kasprintf(GFP_KERNEL, "%s-led",
|
|
wiphy_name(priv->hw->wiphy));
|
|
priv->led.brightness_set = iwl_led_brightness_set;
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,25))
|
|
priv->led.blink_set = iwl_led_blink_set;
|
|
+#endif
|
|
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30)
|
|
priv->led.max_brightness = 1;
|
|
#endif
|