fix madwifi mode setting
[openwrt.git] / target / linux / adm5120 / patches / 203-gpio_leds_brightness.patch
index 1c53192..06394da 100644 (file)
@@ -1,8 +1,6 @@
-Index: linux-2.6.24.7/drivers/leds/leds-gpio.c
-===================================================================
---- linux-2.6.24.7.orig/drivers/leds/leds-gpio.c
-+++ linux-2.6.24.7/drivers/leds/leds-gpio.c
-@@ -41,13 +41,17 @@ static void gpio_led_set(struct led_clas
+--- a/drivers/leds/leds-gpio.c
++++ b/drivers/leds/leds-gpio.c
+@@ -41,13 +41,17 @@
                container_of(led_cdev, struct gpio_led_data, cdev);
        int level;
  
@@ -25,5 +23,5 @@ Index: linux-2.6.24.7/drivers/leds/leds-gpio.c
 +              break;
 +      }
  
-       /* setting GPIOs with I2C/etc requires a preemptible task context */
-       if (led_dat->can_sleep) {
+       /* Setting GPIOs with I2C/etc requires a task context, and we don't
+        * seem to have a reliable way to know if we're already in one; so
This page took 0.025891 seconds and 4 git commands to generate.