X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/eddc6c081b8cb991030f9dfa5f44e4344e18b083..ae1f46d43dfb8e013d29aff091b7261a8a420367:/target/linux/adm5120/patches/203-gpio_leds_brightness.patch diff --git a/target/linux/adm5120/patches/203-gpio_leds_brightness.patch b/target/linux/adm5120/patches/203-gpio_leds_brightness.patch index 1a21c217f..06394da29 100644 --- a/target/linux/adm5120/patches/203-gpio_leds_brightness.patch +++ b/target/linux/adm5120/patches/203-gpio_leds_brightness.patch @@ -1,8 +1,6 @@ -Index: linux-2.6.24.2/drivers/leds/leds-gpio.c -=================================================================== ---- linux-2.6.24.2.orig/drivers/leds/leds-gpio.c -+++ linux-2.6.24.2/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.2/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