The max_brightness member in struct led_classdev was added in kernel 2.6.30, so use LED_FULL for older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- compat/compat-2.6.37.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/compat/compat-2.6.37.c b/compat/compat-2.6.37.c index a522b4e..8636c65 100644 --- a/compat/compat-2.6.37.c +++ b/compat/compat-2.6.37.c @@ -281,7 +281,11 @@ void led_blink_set(struct led_classdev *led_cdev, if (current_brightness) led->blink_brightness = current_brightness; if (!led->blink_brightness) +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,30) led->blink_brightness = led_cdev->max_brightness; +#else + led->blink_brightness = LED_FULL; +#endif led_stop_software_blink(led); led->blink_delay_on = *delay_on; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html